diff rc/bashrc @ 344:759f9a63a497

Additional structure.
author Edho Arief <edho@myconan.net>
date Tue, 03 Apr 2012 11:02:19 +0000
parents 4a37643931c4
children ea7214e4272b
line wrap: on
line diff
--- a/rc/bashrc	Sun Mar 25 18:21:30 2012 +0700
+++ b/rc/bashrc	Tue Apr 03 11:02:19 2012 +0000
@@ -134,11 +134,11 @@
 unset _grep
 
 # Custom application I usually install and safe to prioritize
-for i in {"${HOME}/app","/opt"}/{tmux,ruby19,node,tarsnap,symon,nginx}/{bin,sbin}; do
+for i in {"${HOME}/app","/opt"{,"/${USER:-$LOGNAME}"}}/{tmux,ruby19,node,tarsnap,symon,nginx}/{bin,sbin}; do
   [ -d "${i}" ] && PATH="${i}:${PATH}"
 done
 # New(?) rubygems bin PATH
-for i in {"${HOME}/app","/opt"}/ruby19/lib/ruby/gems/1.9.1/bin; do
+for i in {"${HOME}/app","/opt"{,"/${USER:-$LOGNAME}"}}/ruby19/lib/ruby/gems/1.9.1/bin; do
   [ -d "${i}" ] && PATH="${i}:${PATH}"
 done