# HG changeset patch # User Edho Arief # Date 1333450939 0 # Node ID 759f9a63a4972f35b5dda031864592659e88c09c # Parent 32897d383f97eb32fb1eeb3355853b2111d8bf9f Additional structure. diff -r 32897d383f97 -r 759f9a63a497 rc/bashrc --- 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