diff options
| -rw-r--r-- | dotfiles-darwin/zsh/env | 8 | ||||
| -rw-r--r-- | dotfiles-darwin/zsh/rc | 4 |
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 |
