diff options
author | Weitian LI <liweitianux@gmail.com> | 2015-01-29 00:34:52 +0800 |
---|---|---|
committer | Weitian LI <liweitianux@gmail.com> | 2015-01-29 00:34:52 +0800 |
commit | c8128886c3b4ac35efb3ec975679109bf0dac537 (patch) | |
tree | c0b63d646f2183bb92a76b35c0d9dd00e6ae0999 /.profile | |
parent | d9113da04cdf2f1c4e71b06aed7a358f70757e9a (diff) | |
download | dotfiles-c8128886c3b4ac35efb3ec975679109bf0dac537.tar.bz2 |
Added '.npmrc' and updated '.profile' for npm PATH
Diffstat (limited to '.profile')
-rw-r--r-- | .profile | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -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" |