summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2024-11-23 15:39:15 +0000
committerGrégoire Duchêne <gduchene@awhk.org>2024-11-23 15:39:15 +0000
commit53811683ccf96a7444dac55b4466e5e79b7159d2 (patch)
treeae8dda4818996b13f938e4af4b6a54de9b563a0e
parente589b5788c0acb452f1e1391f49b5877f5e69d27 (diff)
darwin/zsh: Put Apple Terminal configuration back
-rw-r--r--dotfiles-darwin/zsh/env8
-rw-r--r--dotfiles-darwin/zsh/rc4
2 files changed, 8 insertions, 4 deletions
diff --git a/dotfiles-darwin/zsh/env b/dotfiles-darwin/zsh/env
index 9c4badb..69871e9 100644
--- a/dotfiles-darwin/zsh/env
+++ b/dotfiles-darwin/zsh/env
@@ -5,3 +5,11 @@ export XDG_CACHE_HOME=~/Library/Caches
export XDG_CONFIG_HOME=~/Library/Preferences
export XDG_DATA_HOME=~/Library
export XDG_RUNTIME_DIR=${TMPDIR%/}
+
+# Prevent Apple Terminal from cluttering ${HOME}.
+#
+# This needs to be in the env file as the variable has to be set before
+# the stuff in /etc/zshrc_Apple_Terminal kicks in.
+if [[ ${TERM_PROGRAM} == Apple_Terminal ]]; then
+ SHELL_SESSIONS_DISABLE=1
+fi
diff --git a/dotfiles-darwin/zsh/rc b/dotfiles-darwin/zsh/rc
index bb9e027..cb9ba33 100644
--- a/dotfiles-darwin/zsh/rc
+++ b/dotfiles-darwin/zsh/rc
@@ -13,10 +13,6 @@ else
alias lsh='ls -Shlr | cut -f5- -w'
fi
-# Prevent Apple Terminal from cluttering ${HOME}.
-if [[ ${TERM_PROGRAM} == Apple_Terminal ]]; then
- SHELL_SESSIONS_DISABLE=1
-fi
if [[ ${TERM_PROGRAM} != iTerm.app ]]; then
autoload -Uz vcs_info