all repos — nixfiles @ dbbc1ad5821628f8c5f9d08c78a06f2561332840

System and user configuration, managed by nix and home-manager

zsh: enable working directory titlebar updates on darwin
Alan Pearce alan@alanpearce.eu
Fri, 11 Dec 2020 18:08:44 +0100
commit

dbbc1ad5821628f8c5f9d08c78a06f2561332840

parent

1dc912be8845366d9fa9838bce91b27526772df1

1 files changed, 2 insertions(+), 0 deletions(-)

jump to
M system/settings/darwin.nixsystem/settings/darwin.nix
@@ -15,6 +15,8 @@ interactiveShellInit = ''       if [[ "$(locale LC_CTYPE)" == "UTF-8" ]]; then
         setopt COMBINING_CHARS
       fi
+      # Useful support for interacting with Terminal.app or other terminal programs
+      [[ -r "/etc/zshrc_$TERM_PROGRAM" ]] && . "/etc/zshrc_$TERM_PROGRAM"
     '';
   };