diff options
| author | Grégoire Duchêne <gduchene@awhk.org> | 2022-04-03 17:39:38 +0100 |
|---|---|---|
| committer | Grégoire Duchêne <gduchene@awhk.org> | 2022-04-03 17:39:38 +0100 |
| commit | d77d66d2361f4fb4853f7a515c31bf178ae4b743 (patch) | |
| tree | e46a62fb5c28a54ebfd1aa56b16eaa24eb0a04fa /dotfiles-darwin | |
| parent | 5054fb2807721236dc0aeb43496604ab863f2ee5 (diff) | |
darwin/zsh: Disable “sessions” in Terminal.app
Diffstat (limited to 'dotfiles-darwin')
| -rw-r--r-- | dotfiles-darwin/zsh/env | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/dotfiles-darwin/zsh/env b/dotfiles-darwin/zsh/env index 9c4badb..b5b2c25 100644 --- a/dotfiles-darwin/zsh/env +++ b/dotfiles-darwin/zsh/env @@ -5,3 +5,8 @@ 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}. +if [[ ${TERM_PROGRAM} == Apple_Terminal ]]; then + SHELL_SESSIONS_DISABLE=1 +fi |
