Moved env vars to ~/.pam_environment to maximize scope

This commit is contained in:
David Thurstenson 2020-06-22 12:28:43 -05:00
parent 6e4eecd613
commit 280169b4df
2 changed files with 10 additions and 7 deletions

View File

@ -10,10 +10,4 @@ case $(tty) in /dev/tty[0-9]*)
;;
esac
# Add home bin folder to $PATH
PATH=$PATH:~/bin
# Redirect npm global installs to user folder instead
# Ref: https://wiki.archlinux.org/index.php/Node.js#Allow_user-wide_installations
PATH="$HOME/.node_modules/bin:$PATH"
export npm_config_prefix=~/.node_modules
# To maximize scope, env vars are set in ~/.pam_environment

9
.pam_environment Normal file
View File

@ -0,0 +1,9 @@
# ~/.pam_environment variables
# Add home bin folder and ~/.node_modules/bin to $PATH
PATH DEFAULT= OVERRIDE=${HOME}/bin:${HOME}/.node_modues/bin:${PATH}
# Redirect npm global installs to user folder instead
# Ref: https://wiki.archlinux.org/index.php/Node.js#Allow_user-wide_installations
npm_config_prefix DEFAULT=/home/thurstylark/.node_modules