* add $HOME/bin to $PATH if it exists
authormitty <mitty@7d2118f6-f56c-43e7-95a2-4bb3031d96e7>
Thu, 9 May 2013 05:52:49 +0000 (05:52 +0000)
committermitty <mitty@7d2118f6-f56c-43e7-95a2-4bb3031d96e7>
Thu, 9 May 2013 05:52:49 +0000 (05:52 +0000)
git-svn-id: https://lab.mitty.jp/svn/lab/trunk@214 7d2118f6-f56c-43e7-95a2-4bb3031d96e7

TipAndDoc/.bashrc

index 298d439..bece347 100644 (file)
@@ -38,6 +38,10 @@ else
     export PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
 fi
 
+if [ -d $HOME/bin -a `echo $PATH | grep -c $HOME/bin` -eq 0 ]; then
+    export PATH=$PATH:$HOME/bin
+fi
+
 function svnst {
     svn st $@ | grep "^[^?]"
 }