From fac95146b95ef103e8100b2284671be4bdc1065f Mon Sep 17 00:00:00 2001 From: Igor Soarez Date: Mon, 5 Oct 2026 09:45:05 +0300 Subject: alacritty: the mux launch in its own import, overridable per machine Alacritty merges the importing file last, over all of its imports (v0.17.0: merge(imports, config)), so the inline [terminal.shell] could not be replaced from local.toml at all; local.toml only ever got away with keys the main file leaves unset. The launch now lives in mux.toml, imported first, and local.toml, imported after it, can replace it. But only in the string form. Alacritty's merge appends arrays rather than replacing them, key by key (serde_utils.rs), so a [terminal.shell] table in local.toml would put its args after tmux's, zsh would run the first -c, and the window would open in tmux with no error -- the override the filed request described would not have worked. mux.toml and AGENTS.md say how to do it: `[terminal] shell = "/path/to/launcher"`, which replaces the whole table. No machine changes today: the existing local.toml files set fonts only. From change request 0bd5fb. --- config/alacritty/alacritty.toml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'config/alacritty/alacritty.toml') diff --git a/config/alacritty/alacritty.toml b/config/alacritty/alacritty.toml index bc6882d..1ac7b9a 100644 --- a/config/alacritty/alacritty.toml +++ b/config/alacritty/alacritty.toml @@ -14,10 +14,6 @@ history = 0 [selection] semantic_escape_chars = ",│`|:\"' ()[]{}<>" -[terminal.shell] -args = ["--login", "-ic", "exec tmux new-session -As 0 -f ~/.tmux.conf"] -program = "/bin/zsh" - [env] term = "xterm-256color" @@ -37,6 +33,10 @@ option_as_alt = "OnlyLeft" [general] import = [ + # The mux every window starts in, tmux by default. Before local.toml, so a + # machine can replace it there -- with the string form, see mux.toml for + # why. Relative, so it resolves beside this file on either home layout. + "mux.toml", "/Users/sz/.local/share/alacritty/local.toml", "/home/sz/.local/share/alacritty/local.toml", "/Users/sz/.local/share/alacritty/color.toml", -- cgit v1.2.3