summaryrefslogtreecommitdiff
path: root/dotfiles-darwin/zsh/env
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 /dotfiles-darwin/zsh/env
parente589b5788c0acb452f1e1391f49b5877f5e69d27 (diff)
darwin/zsh: Put Apple Terminal configuration back
Diffstat (limited to 'dotfiles-darwin/zsh/env')
-rw-r--r--dotfiles-darwin/zsh/env8
1 files changed, 8 insertions, 0 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