diff --git a/pam_environment b/pam_environment new file mode 100644 index 0000000..31e71e0 --- /dev/null +++ b/pam_environment @@ -0,0 +1 @@ +PATH DEFAULT="${HOME}/bin:${PATH}" diff --git a/setup.sh b/setup.sh index efc60c1..20b8438 100755 --- a/setup.sh +++ b/setup.sh @@ -40,7 +40,10 @@ link() [ -z "${dryrun+x}" ] && ln -sf "$src" "$dst" } +# generic config +link pam_environment ~/.pam_environment +# application-specific config if installed vim; then echo "Setting up vim:" diff --git a/zsh/exports.zsh b/zsh/exports.zsh index f65f14e..cc36a5f 100644 --- a/zsh/exports.zsh +++ b/zsh/exports.zsh @@ -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