1
0

Add npm configuration for sudoless npm installs

This commit is contained in:
Noah 2016-03-18 10:37:21 -07:00
parent 379e4d8137
commit 6a70ed807d
2 changed files with 9 additions and 0 deletions

3
home/.npmrc Normal file
View File

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

View File

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