comparison .bashrc @ 32:29dfb30b069c

Added /usr/X11R6/bin to $PATH (Macs store some stuff there, Linux has it mostly empty and therefore harmless to add).
author huston@80426f53-59d1-405d-934b-f07cd76f4a1a
date Wed, 03 Mar 2010 01:49:33 +0000
parents a93f5d5278f3
children f59f847377d7
comparison
equal deleted inserted replaced
31:a93f5d5278f3 32:29dfb30b069c
38 # Paths 38 # Paths
39 # 39 #
40 # Standard-ish paths; some of these may be in place already, but if 40 # Standard-ish paths; some of these may be in place already, but if
41 # they're not they should probably go near the front of the pack. 41 # they're not they should probably go near the front of the pack.
42 for P in /sbin /usr/sbin /usr/local/bin /usr/local/sbin \ 42 for P in /sbin /usr/sbin /usr/local/bin /usr/local/sbin \
43 /opt/local/bin /opt/local/sbin ; do 43 /opt/local/bin /opt/local/sbin /usr/X11R6/bin; do
44 if [ -d $P ]; then 44 if [ -d $P ]; then
45 [[ "$PATH" =~ "(^|:)$P($|:)" ]] || \ 45 [[ "$PATH" =~ "(^|:)$P($|:)" ]] || \
46 export PATH=${P}${PATH:+:$PATH} 46 export PATH=${P}${PATH:+:$PATH}
47 fi 47 fi
48 done 48 done