diff options
author | Aaron LI <aaronly.me@outlook.com> | 2016-10-29 20:40:57 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@outlook.com> | 2016-10-29 20:40:57 +0800 |
commit | cb74fd113433bd67d7d352e76e2a0310d92957b6 (patch) | |
tree | 1f6ad82ee4ef3c11aef017c639aa0ec08391a462 /_profile | |
parent | 1bee8e29e5167288f07e0c5ceaf02327f990484e (diff) | |
download | dotfiles-cb74fd113433bd67d7d352e76e2a0310d92957b6.tar.bz2 |
Install NPM packages to ~/.npm-packages
Credit:
* https://github.com/glenpike/npm-g_nosudo
* https://github.com/sindresorhus/guides/blob/master/npm-global-without-sudo.md
Diffstat (limited to '_profile')
-rw-r--r-- | _profile | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -30,6 +30,10 @@ _path_append() { PATH="${PATH}:$1" } +# local installed npm packages (see also `~/.npmrc`) +if [ -d "$HOME/.npm-packages/bin" ]; then + _path_prepend "${HOME}/.npm-packages/bin" +fi # local installed packages (e.g., python) if [ -d "$HOME/.local/bin" ]; then _path_prepend "${HOME}/.local/bin" |