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 ++++++++ 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 -- cgit v1.2.3-70-g09d2