Browse Source

Add npm configuration for sudoless npm installs

master
Noah Petherbridge 6 years ago
parent
commit
6a70ed807d
  1. 3
      home/.npmrc
  2. 6
      home/.zshrc

3
home/.npmrc

@ -0,0 +1,3 @@
_auth = a2lyc2xlOjBsUUFWWHN3eGJjQURwemw=
prefix = /home/npetherbridge/.npm-global-pkg
email = root@kirsle.net

6
home/.zshrc

@ -40,6 +40,11 @@ export WORKON_HOME=~/.virtualenvs
# Go
export GOPATH="$HOME/go"
# Node/npm
export NPM_PACKAGES="${HOME}/.npm-global-pkg"
export NODE_PATH="${NPM_PACKAGES}/lib/node_modules:${NODE_PATH}"
export PATH="${NPM_PACKAGES}/bin:$PATH"
# Reload zshrc
alias rezsh="source ${HOME}/.zshrc"
@ -110,6 +115,7 @@ precmd() {
alias vi="vim"
alias grep="grep --exclude=min.js --color=auto"
alias ll="ls -l"
alias tojson="python -m json.tool" # JSON pretty print
if [[ `uname` == 'Linux' ]] then
alias ls="ls --color=auto"

Loading…
Cancel
Save