extend PATH in pam_environment instead of zsh config

This way, the extended PATH variable is available for the whole
session and not just for the zsh session.
This commit is contained in:
Thomas Preisner 2021-01-22 00:45:30 +01:00
parent 847c4950f2
commit 88c797807d
3 changed files with 4 additions and 7 deletions

View file

@ -2,10 +2,3 @@
if type vim >/dev/null 2>&1; then
export EDITOR="vim"
fi
# extend PATH variable
export PATH="/usr/local/sbin:/usr/sbin:/sbin:$PATH"
if [ -d "$HOME/bin" ]; then
export PATH="$HOME/bin:$PATH"
fi