Mercurial > index.cgi > dotfiles
comparison .bashrc @ 18:ebc3f864376c
Removed the LD_LIBRARY_PATH lines entirely since I've not seen any ill effects
(haven't tested much either, but they can always be replaced). Added logic to
setup MIBDIRS and MIBS for easier commandline snmpeeing.
author | huston@80426f53-59d1-405d-934b-f07cd76f4a1a |
---|---|
date | Wed, 25 Nov 2009 18:05:41 +0000 |
parents | 90ad040b032c |
children | f65964738bab |
comparison
equal
deleted
inserted
replaced
17:90ad040b032c | 18:ebc3f864376c |
---|---|
82 | 82 |
83 if [ -d $D/man ]; then | 83 if [ -d $D/man ]; then |
84 [[ "$MANPATH" =~ "(^|:)$D/man($|:)" ]] || \ | 84 [[ "$MANPATH" =~ "(^|:)$D/man($|:)" ]] || \ |
85 export MANPATH=$D/man:${MANPATH:+$MANPATH} | 85 export MANPATH=$D/man:${MANPATH:+$MANPATH} |
86 fi | 86 fi |
87 | |
88 # if [ -d $D/lib ]; then | |
89 # [[ "$LD_LIBRARY_PATH" =~ "(^|:)$D/lib($|:)" ]] || \ | |
90 # export LD_LIBRARY_PATH=$D/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} | |
91 # fi | |
92 done | 87 done |
93 | 88 |
94 # Add-ons for Intel compilers at work, and Condor | 89 # Add-ons for Intel compilers at work, and Condor |
95 [[ -f /usr/peyton/intel/10.1/cc64/bin/iccvars.sh ]] && \ | 90 [[ -f /usr/peyton/intel/10.1/cc64/bin/iccvars.sh ]] && \ |
96 . /usr/peyton/intel/10.1/cc64/bin/iccvars.sh | 91 . /usr/peyton/intel/10.1/cc64/bin/iccvars.sh |
109 | 104 |
110 # Last, make sure to end MANPATH with a ':' to force include of system paths | 105 # Last, make sure to end MANPATH with a ':' to force include of system paths |
111 # (some versions of man take care of this, but it doesn't hurt to have it | 106 # (some versions of man take care of this, but it doesn't hurt to have it |
112 # anyway) | 107 # anyway) |
113 [[ "$MANPATH" =~ ":$" ]] || export MANPATH=$MANPATH: | 108 [[ "$MANPATH" =~ ":$" ]] || export MANPATH=$MANPATH: |
109 | |
110 # Store MIBs in ~/mibs and they'll be added here. Can nest directories | |
111 # (they'll be searched). | |
112 if [ -d $HOME/mibs ]; then | |
113 for D in `find $HOME/mibs -type d` ; do | |
114 [[ "$MIBDIRS" =~ "(^\+|:)$D($|:)" ]] || \ | |
115 export MIBDIRS=${MIBDIRS:+$MIBDIRS:}$D | |
116 done | |
117 | |
118 [[ "$MIBDIRS" =~ "^\+" ]] || export MIBDIRS=+$MIBDIRS | |
119 export MIBS=ALL | |
120 fi |