From 53811683ccf96a7444dac55b4466e5e79b7159d2 Mon Sep 17 00:00:00 2001 From: GrĂ©goire DuchĂȘne Date: Sat, 23 Nov 2024 15:39:15 +0000 Subject: darwin/zsh: Put Apple Terminal configuration back --- dotfiles-darwin/zsh/env | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'dotfiles-darwin/zsh/env') 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 -- cgit v1.2.3-70-g09d2