all repos — nixfiles @ 8040ffef312042bab871b30e3f99b928f6df3d3f

System and user configuration, managed by nix and home-manager

npm/yarn: Install to ~/.local

Alan Pearce
commit

8040ffef312042bab871b30e3f99b928f6df3d3f

parent

e6df5c84a11e58733ddc32393e144cb60787ab05

2 files changed, 9 insertions(+), 0 deletions(-)

jump to
A npmrc
@@ -0,0 +1,1 @@
+prefix = ${HOME}/.local/
M tag-zsh/config/zsh/zshrctag-zsh/config/zsh/zshrc
@@ -26,6 +26,11 @@ then
path+=($HOME/bin) fi +if [[ ${path[(I)$HOME/.local/bin ]} ]] +then + path+=($HOME/.local/bin) +fi + export EDITOR=emacsclient alias ec=emacsclient alias open-project=projectile
@@ -34,6 +39,9 @@ emacsclient -e "($1 \"$2\")" > /dev/null
} projectile () { _emacs_function projectile-switch-project-by-name ${1:-$PWD} +} +yarn () { + PREFIX=$HOME/.local command yarn "$@" } ls='\ls'