all repos — dot @ master

Shell, editor and terminal configuration, and the tools that go with them

config/alacritty/mux.toml (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
# The multiplexer every Alacritty window starts in or attaches to, shared
# default: tmux, the same launch as config/ghostty/config.
#
# In its own import, listed first, rather than inline in alacritty.toml,
# because of how Alacritty merges config (v0.17.0, alacritty/src/config/):
# imports merge in list order, later ones winning, and the importing file is
# merged last and beats all of them -- `merge(imports, config)`. An inline
# [terminal.shell] could never be overridden from an import.
#
# To replace it on one machine, in ~/.local/share/alacritty/local.toml, use
# the string form, pointing at an executable that takes no arguments:
#
#   [terminal]
#   shell = "/Users/me/.local/bin/my-mux"
#
# NOT a [terminal.shell] table with its own args. Alacritty's merge appends
# arrays rather than replacing them (serde_utils.rs: base.append), so that
# machine's args would land after these, zsh would run the first -c, and the
# window would still open in tmux, with no error. A string replaces the whole
# table, args and all.
#
# A missing local.toml is skipped, and every window starts here, as before.

[terminal.shell]
args = ["--login", "-ic", "exec tmux new-session -As 0 -f ~/.tmux.conf"]
program = "/bin/zsh"