summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2020-12-11 18:08:44 +0100
committerAlan Pearce2020-12-11 19:13:59 +0100
commitdbbc1ad5821628f8c5f9d08c78a06f2561332840 (patch)
treebf7e90b66e8013851cac3729ca786e07752e1397
parent1dc912be8845366d9fa9838bce91b27526772df1 (diff)
downloadnixfiles-dbbc1ad5821628f8c5f9d08c78a06f2561332840.tar.lz
nixfiles-dbbc1ad5821628f8c5f9d08c78a06f2561332840.tar.zst
nixfiles-dbbc1ad5821628f8c5f9d08c78a06f2561332840.zip
zsh: enable working directory titlebar updates on darwin
-rw-r--r--system/settings/darwin.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/system/settings/darwin.nix b/system/settings/darwin.nix
index 996e5ca9..6143625b 100644
--- a/system/settings/darwin.nix
+++ b/system/settings/darwin.nix
@@ -15,6 +15,8 @@
       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"
     '';
   };