Alacritty terminal emulator

The configuration contains some comments so it’s not necessary to explain everything thereto. Please refer to official documentation for comprehensive information.

Alacritty is a modern cross-platform terminal emulator which supports main ones: OS Linux, Windows, MacOS.

Below is my TOML configuration file which should be saved to

  1. $HOME/.config/alacritty/alacritty.toml on Linux / MacOS
  2. %APPDATA%\alacritty\alacritty.toml on Windows
[general]
working_directory = "None"
# reload configuration on the fly
live_config_reload = true

# All key-value pairs in the [env] section will be added
# as environment variables for any process spawned by Alacritty,
# including its shell. Some entries may override variables set by alacritty itself.
[env]
# These are required for proper colouring in command-line text editors
TERM = "xterm-256color"
COLORTERM = "truecolor"
LANG = "en_US.UTF-8"

[font]
# I prefer big size, by default it is 11 or so
size = 14
normal.family = "Hack Nerd Font"
normal.style = "Regular"

[window]
# Window size
dimensions.columns = 133
dimensions.lines = 40
padding = { x = 10, y = 8 }
# add additional padding around content
dynamic_padding = true
# let's make it a bit transparent, but not too much
opacity = 0.93
blur = false
# For MacOS only, use Option key as Alt or Meta
option_as_alt = "OnlyLeft" # | "OnlyRight" | "Both" | "None"
#startup_mode = "Windowed" # | "Maximized" | "Fullscreen" | "SimpleFullscreen"

[scrolling]
history = 10000
# Number of line scrolled for every input scroll increment.
multiplier = 3

[selection]
# When set to true, selected text will be copied to the primary clipboard.
save_to_clipboard = false

[cursor]
# shape = "Block" | "Underline" | "Beam", blinking = "Never" | "Off" | "On" | "Always"
style = { shape = "Block" , blinking = "On" }
blink_interval = 750 # milliseconds
blink_timeout = 5 # seconds
# When this is true, the cursor will be rendered as a hollow box when the window is not focused.
unfocused_hollow = true

[terminal.shell]
program = "/bin/zsh"
args = ["-l"]

[mouse]
hide_when_typing = false
#bindings = [
#{ mouse = "Right", mods = "Control", action = "Paste" },
#]

[keyboard]
# bindings = [
# { key = "N", mods = "Control|Shift", action = "CreateNewWindow" },
# { key = "L", mods = "Control|Shift", chars = "l" },
# ]

I use Hack nerd font. it can be installed using brew on MacOS as follows:

brew install font-hack-nerd-font