From 8040ffef312042bab871b30e3f99b928f6df3d3f Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 31 Oct 2016 13:22:10 +0100 Subject: npm/yarn: Install to ~/.local --- npmrc | 1 + tag-zsh/config/zsh/zshrc | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 npmrc diff --git a/npmrc b/npmrc new file mode 100644 index 0000000..6804f65 --- /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 662ab66..f532750 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" -- cgit 1.4.1