aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWeitian LI <liweitianux@gmail.com>2015-01-29 00:34:52 +0800
committerWeitian LI <liweitianux@gmail.com>2015-01-29 00:34:52 +0800
commitc8128886c3b4ac35efb3ec975679109bf0dac537 (patch)
treec0b63d646f2183bb92a76b35c0d9dd00e6ae0999
parentd9113da04cdf2f1c4e71b06aed7a358f70757e9a (diff)
downloaddotfiles-c8128886c3b4ac35efb3ec975679109bf0dac537.tar.bz2
Added '.npmrc' and updated '.profile' for npm PATH
-rw-r--r--.npmrc7
-rw-r--r--.profile14
-rw-r--r--README.md2
3 files changed, 18 insertions, 5 deletions
diff --git a/.npmrc b/.npmrc
new file mode 100644
index 0000000..f9e0a43
--- /dev/null
+++ b/.npmrc
@@ -0,0 +1,7 @@
+;;
+;; npm config
+;;
+
+;; install packages under user home directory
+prefix = ${HOME}/npm
+
diff --git a/.profile b/.profile
index 822f6b8..c2d0b76 100644
--- a/.profile
+++ b/.profile
@@ -17,16 +17,22 @@ export QT_IM_MODULE="fcitx"
export QT4_IM_MODULE="fcitx"
###### PATH ######
+# admin
+if `groups | grep -qE '\b(wheel|adm|sudo)\b'`; then
+ export PATH="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
+fi
# $HOME/bin
if [ -d "$HOME/bin" ]; then
export PATH="$HOME/bin:$PATH"
fi
-# admin
-if `groups | grep -qE '\b(wheel|adm|sudo)\b'`; then
- export PATH="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
+# npm
+if [ -d "$HOME/npm" ]; then
+ export PATH="$PATH:$HOME/npm"
fi
# TeXlive
-export PATH=$PATH:/usr/local/texlive/bin/x86_64-linux
+if [ -d "/usr/local/texlive/bin/x86_64-linux" ]; then
+ export PATH="$PATH:/usr/local/texlive/bin/x86_64-linux"
+fi
###### gpg agent ######
gpgenv="$HOME/.gnupg/gpg-agent.env"
diff --git a/README.md b/README.md
index e86ff1b..df19e93 100644
--- a/README.md
+++ b/README.md
@@ -7,6 +7,6 @@ Distributed under MIT License.
Weitian LI
-GnuPG key: Weitian LI (Null) <liweitianux@gmail.com>
+GnuPG key: Weitian LI <liweitianux@gmail.com>
Fingerprint: F00D 615C 9984 147B 450F 56EA F81B F453 5F26 EBF6