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:
parent
847c4950f2
commit
88c797807d
3 changed files with 4 additions and 7 deletions
1
pam_environment
Normal file
1
pam_environment
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
PATH DEFAULT="${HOME}/bin:${PATH}"
|
||||||
3
setup.sh
3
setup.sh
|
|
@ -40,7 +40,10 @@ link()
|
||||||
[ -z "${dryrun+x}" ] && ln -sf "$src" "$dst"
|
[ -z "${dryrun+x}" ] && ln -sf "$src" "$dst"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# generic config
|
||||||
|
link pam_environment ~/.pam_environment
|
||||||
|
|
||||||
|
# application-specific config
|
||||||
if installed vim; then
|
if installed vim; then
|
||||||
echo "Setting up vim:"
|
echo "Setting up vim:"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,10 +2,3 @@
|
||||||
if type vim >/dev/null 2>&1; then
|
if type vim >/dev/null 2>&1; then
|
||||||
export EDITOR="vim"
|
export EDITOR="vim"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# extend PATH variable
|
|
||||||
export PATH="/usr/local/sbin:/usr/sbin:/sbin:$PATH"
|
|
||||||
|
|
||||||
if [ -d "$HOME/bin" ]; then
|
|
||||||
export PATH="$HOME/bin:$PATH"
|
|
||||||
fi
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue