* add admin tool path
authormitty <mitty@7d2118f6-f56c-43e7-95a2-4bb3031d96e7>
Wed, 16 Feb 2011 01:09:22 +0000 (01:09 +0000)
committermitty <mitty@7d2118f6-f56c-43e7-95a2-4bb3031d96e7>
Wed, 16 Feb 2011 01:09:22 +0000 (01:09 +0000)
  * 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

TipAndDoc/.bash_profile

index 21e6365..565580a 100644 (file)
@@ -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"