summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2016-10-31 13:22:10 +0100
committerAlan Pearce2016-10-31 13:22:21 +0100
commit8040ffef312042bab871b30e3f99b928f6df3d3f (patch)
tree4c0e196d0ed2b0d7ec679f00cd3e30da9ef4c2db
parente6df5c84a11e58733ddc32393e144cb60787ab05 (diff)
downloadnixfiles-8040ffef312042bab871b30e3f99b928f6df3d3f.tar.lz
nixfiles-8040ffef312042bab871b30e3f99b928f6df3d3f.tar.zst
nixfiles-8040ffef312042bab871b30e3f99b928f6df3d3f.zip
npm/yarn: Install to ~/.local
-rw-r--r--npmrc1
-rw-r--r--tag-zsh/config/zsh/zshrc8
2 files changed, 9 insertions, 0 deletions
diff --git a/npmrc b/npmrc
new file mode 100644
index 00000000..6804f657
--- /dev/null
+++ b/npmrc
@@ -0,0 +1 @@
+prefix = ${HOME}/.local/
\ No newline at end of file
diff --git a/tag-zsh/config/zsh/zshrc b/tag-zsh/config/zsh/zshrc
index 662ab660..f5327507 100644
--- a/tag-zsh/config/zsh/zshrc
+++ b/tag-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
@@ -35,6 +40,9 @@ _emacs_function () {
 projectile () {
   _emacs_function projectile-switch-project-by-name ${1:-$PWD}
 }
+yarn () {
+  PREFIX=$HOME/.local command yarn "$@"
+}
 
 ls='\ls'
 gnu_ls_options="-v --group-directories-first --color=auto"