diff options
author | Weitian LI <liweitianux@gmail.com> | 2015-01-19 10:21:08 +0800 |
---|---|---|
committer | Weitian LI <liweitianux@gmail.com> | 2015-01-19 10:21:08 +0800 |
commit | 0b08340aecac94e17356431894c9635d9bc958d2 (patch) | |
tree | 2dfd7f2b0a098b28fbbf2bda4d41e76475625c04 /.profile | |
parent | 6a3885395e9bb793e22694fd1a210078cef69dfc (diff) | |
download | dotfiles-0b08340aecac94e17356431894c9635d9bc958d2.tar.bz2 |
Updated various configs.
Diffstat (limited to '.profile')
-rw-r--r-- | .profile | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -18,11 +18,15 @@ export QT4_IM_MODULE="fcitx" ###### PATH ###### # $HOME/bin -export PATH=$HOME/bin:$PATH +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" +fi # TeXlive export PATH=$PATH:/usr/local/texlive/bin/x86_64-linux -# admin -export PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin ###### gpg agent ###### eval "$(gpg-agent --daemon)" |