From: mitty Date: Wed, 16 Feb 2011 01:09:22 +0000 (+0000) Subject: * add admin tool path X-Git-Url: http://lab.mitty.jp/git/?a=commitdiff_plain;h=5650e43cb0dd536fe7731d612fea18c389a44b83;p=lab.git * add admin tool path * from http://www.tomoakisoft.com/tsldp/bootstrap/00000009.html git-svn-id: https://lab.mitty.jp/svn/lab/trunk@110 7d2118f6-f56c-43e7-95a2-4bb3031d96e7 --- diff --git a/TipAndDoc/.bash_profile b/TipAndDoc/.bash_profile index 21e6365..565580a 100644 --- a/TipAndDoc/.bash_profile +++ b/TipAndDoc/.bash_profile @@ -1,3 +1,10 @@ +# add /usr/local/sbin, /usr/sbin, /sbin to $PATH +echo $PATH | grep /usr/local/sbin 1> /dev/null 2> /dev/null +if [ ! $? = 0 ]; then + PATH=/usr/local/sbin:/usr/sbin:/sbin:$PATH +fi + + # set PATH so it includes user's private bin if it exists if [ -d "$HOME/.bin" ] ; then PATH="$HOME/.bin:$PATH"