Browse Source

Moved env vars to ~/.pam_environment to maximize scope

master
David Thurstenson 2 years ago
parent
commit
280169b4df
  1. 8
      .bash_profile
  2. 9
      .pam_environment

8
.bash_profile

@ -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

@ -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
Loading…
Cancel
Save