From: mitty Date: Thu, 9 May 2013 05:52:49 +0000 (+0000) Subject: * add $HOME/bin to $PATH if it exists X-Git-Url: http://lab.mitty.jp/git/?a=commitdiff_plain;h=74ab10f8501ae2704728af3b9905c094eced1092;p=lab.git * add $HOME/bin to $PATH if it exists git-svn-id: https://lab.mitty.jp/svn/lab/trunk@214 7d2118f6-f56c-43e7-95a2-4bb3031d96e7 --- diff --git a/TipAndDoc/.bashrc b/TipAndDoc/.bashrc index 298d439..bece347 100644 --- a/TipAndDoc/.bashrc +++ b/TipAndDoc/.bashrc @@ -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 "^[^?]" }