zsh: split local config into zprofile and zshrc

This commit is contained in:
Fernando Schauenburg 2024-07-26 18:40:53 +02:00
parent 2bc0bfc4da
commit c6750c86c5
2 changed files with 6 additions and 1 deletions

View file

@ -120,3 +120,8 @@ if [ -n "$(uname -r | sed -n 's/.*\( *Microsoft *\).*/\1/ip')" ]; then
fi fi
unset xdisplay unset xdisplay
fi fi
# Load additional local configuration if present.
local_profile="$HOME/.local/etc/zsh/zprofile"
[ -r "$local_profile" ] && source "$local_profile"
unset local_profile

View file

@ -19,7 +19,7 @@ done
unset filepath unset filepath
# Load additional local configuration if present. # Load additional local configuration if present.
local_config="$HOME/.local/etc/zsh/config.zsh" local_config="$HOME/.local/etc/zsh/zshrc"
[ -r "$local_config" ] && source "$local_config" [ -r "$local_config" ] && source "$local_config"
unset local_config unset local_config