From 5d728f66204c43f3a4f73ad7d47a39cad63d2839 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Wed, 13 May 2015 18:50:28 +0300 Subject: [PATCH] Add .npmrc and a note in README.md Signed-off-by: Alan Orth --- .npmrc | 1 + README.md | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 .npmrc diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..9b478de --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +prefix=${HOME}/.npm-packages diff --git a/README.md b/README.md index f463edd..e8ea04c 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ $ ln -sf ~/src/git/dotfiles/.vimrc . $ ln -sf ~/src/git/dotfiles/.tmux.conf . $ ln -sf ~/src/git/dotfiles/.dircolors.ansi-dark . $ ln -sf ~/src/git/dotfiles/.zshrc . +$ ln -sf ~/src/git/dotfiles/.npmrc . ``` ### .bashrc @@ -26,6 +27,9 @@ Syntax highlighting, Solarized color scheme, tab stops to 4 spaces, etc. ### .zshrc Configures a custom prompt, adds paths for pkgsrc on Mac OS X, sets up pyenv, adds aliases, Solarized dircolors, etc. +### .npmrc +Configures a local npm package directory (so I can `npm install -g` without needing sudo) + ### License Copyright (C) 2015 Alan Orth