The ideal shore
CategoriesTagsContactFriendsAbout

This site is powered by KevinYouu using Next.js.

PV: 0 UV: 0 | Total PV: 0 Total UV: 0

Website Runtime: 0 year 0 months 0 days 0 hours 0 minutes 0 seconds

Alacritty Terminal Configuration and Usage

Alacritty Terminal Configuration and Usage

终端
MacOS
Alacritty
Other languages: 简体中文
Created: 02/08/2025
Updated: 03/08/2025
Word count: 465
Reading time: 2.33minutes

Manually compiling the Alacritty terminal emulator with custom icons, accompanied by my personal configuration.

Introduction

Alacritty is a contemporary terminal emulator, characterized by sensible defaults yet allowing for extensive customization. By integrating with other applications, rather than reimplementing their functionalities, it offers a flexible and high-performance feature set. The currently supported platforms encompass BSD, Linux, macOS, and Windows.

Installation

If modification of the icon is not required, direct download is recommended:

  • Directly download the officially compiled installation package: https://alacritty.org/index.html

  • Manual Compilation Here, because the source code's icon is square with right angles and does not quite align with the macOS icon style, I have personally forked a version with a modified icon, thus necessitating manual compilation.

Install the Rust and Make environments:

bash
# Install the Rust environment; if it already exists, this step can be skipped. curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh brew install make
bash
# Shallow clone the repository code. git clone --depth 1 https://github.com/KevinYouu/alacritty.git cd alacritty # Compile for the current architecture. make dmg # Compile the universal architecture for macOS. # dmg-universal

Subsequently, the compiled application and DMG file can be located in the alacritty/target/release/osx directory. Simply place these into /Applications for immediate use.

Configuration

The following is my personalized configuration file:

toml
[window] dimensions = { columns = 80, lines = 24 } padding = { x = 4, y = 0 } opacity = 0.2 blur = true [font] normal = { family = "Roboto Mono", style = "Regular" } bold = { family = "Roboto Mono", style = "bold" } italic = { family = "Roboto Mono", style = "italic" } bold_italic = { family = "Roboto Mono", style = "bold italic" } size = 18 [selection] save_to_clipboard = true semantic_escape_chars = ",│`|:\"' ()[]{}<>\t" [cursor] style = { shape = "Beam", blinking = "On" } [terminal] shell = { program = "/opt/homebrew/bin/fish", args = ["-l"] } [colors.primary] foreground = "#ffffff" # White background = "#000000" # Black [colors.normal] black = "#000000" red = "#ff3b30" green = "#4cd964" yellow = "#ffcc00" blue = "#007aff" magenta = "#ff2d55" cyan = "#5ac8fa" white = "#ffffff" [colors.bright] black = "#686868" red = "#ff3b30" green = "#4cd964" yellow = "#ffcc00" blue = "#007aff" magenta = "#ff2d55" cyan = "#5ac8fa" white = "#ffffff" [keyboard] bindings = [ # Copy (Cmd + C) { key = "C", mods = "Command", action = "Copy" }, # Paste (Cmd + V) { key = "V", mods = "Command", action = "Paste" }, # Find (Cmd + F) { key = "F", mods = "Command", action = "SearchForward" }, # New Window (Cmd + N) { key = "N", mods = "Command", action = "CreateNewWindow" }, # Decrease Font Size (Cmd + -) { key = "Minus", mods = "Command", action = "DecreaseFontSize" }, # Increase Font Size (Cmd + =) { key = "Equals", mods = "Command", action = "IncreaseFontSize" }, # Reset Font Size (Cmd + 0) { key = "Key0", mods = "Command", action = "ResetFontSize" }, # Toggle Full Screen (Cmd + Enter) { key = "Return", mods = "Command", action = "ToggleSimpleFullscreen" }, # Switch to Specific Tab (Cmd + 1 ~ Cmd + 9) { key = "Key1", mods = "Command", action = "SelectTab1" }, { key = "Key2", mods = "Command", action = "SelectTab2" }, { key = "Key3", mods = "Command", action = "SelectTab3" }, { key = "Key4", mods = "Command", action = "SelectTab4" }, { key = "Key5", mods = "Command", action = "SelectTab5" }, { key = "Key6", mods = "Command", action = "SelectTab6" }, { key = "Key7", mods = "Command", action = "SelectTab7" }, { key = "Key8", mods = "Command", action = "SelectTab8" }, { key = "Key9", mods = "Command", action = "SelectTab9" }, # Hide Alacritty (Cmd + H) { key = "H", mods = "Command", action = "Hide" }, # Hide Other Applications (Cmd + Option + H) { key = "H", mods = "Command|Option", action = "HideOtherApplications" }, ]

Preview

References

  • Official Documentation
  • Download Link
  • Rust Documentation

Contents
Introduction
Installation
Configuration
Preview
References