From c868c8a61fd3b9a4b404001aba0c4c6b7318a4a3 Mon Sep 17 00:00:00 2001 From: Linnnus Date: Sun, 8 Oct 2023 12:55:36 +0200 Subject: Move to non-declarative iTerm2 configuration --- home/iterm2/default.nix | 10 +++++++--- modules/home-manager/iterm2/default.nix | 3 +++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/home/iterm2/default.nix b/home/iterm2/default.nix index a0edb7e..693e1fb 100644 --- a/home/iterm2/default.nix +++ b/home/iterm2/default.nix @@ -12,9 +12,13 @@ in { config = mkIf isDarwin { programs.iterm2 = { enable = true; - config = { - SoundForEsc = false; - }; + # config = { + # # Use the minimal tab style. + # # See: https://github.com/gnachman/iTerm2/blob/bd40fba0611fa94684dadf2478625f2a93eb6e47/sources/iTermPreferences.h#L29 + # TabStyleWithAutomaticOption = 5; + # }; + + shellIntegration.enableZshIntegration = true; }; }; } diff --git a/modules/home-manager/iterm2/default.nix b/modules/home-manager/iterm2/default.nix index 997bc5b..2293c80 100644 --- a/modules/home-manager/iterm2/default.nix +++ b/modules/home-manager/iterm2/default.nix @@ -23,6 +23,9 @@ in { }; config = mkOption { + # FIXME: This breaks iTerm2 too much. Create a patch for iTerm2 that + # loads `$XDG_CONFIG_HOME/iterm2/iterm2.plist` in addition to the usual + # `~/Library/Preferences/com.googlecode.iterm2.plist`. description = '' Application preferences. If these are specified, they are serialized to PLIST and stored in `~/Library/Preferences/com.googlecode.iterm2.plist`. -- cgit v1.2.3