Mercurial > index.cgi > dotfiles
comparison .bashrc @ 198:6e7913283c7a
Removed a lot of cruft that's no longer needed, cleaned up some comments & syntax
author | Steve Huston <huston@srhuston.net> |
---|---|
date | Wed, 30 Sep 2020 11:21:14 -0400 |
parents | 954d25f20123 |
children | a20525b2ef00 |
comparison
equal
deleted
inserted
replaced
197:954d25f20123 | 198:6e7913283c7a |
---|---|
1 # $Id$ | |
2 # | |
3 # This file is sourced for shells which are interactive but not a | 1 # This file is sourced for shells which are interactive but not a |
4 # login shell; however, since it is also sourced within | 2 # login shell; however, since it is also sourced within |
5 # $HOME/.bash_profile, the end result is that this file is sourced for all | 3 # $HOME/.bash_profile, the end result is that this file is sourced for all |
6 # shells. | 4 # shells. |
7 | 5 |
100 [[ $MANPATH =~ (^|:)$M($|:) ]] || \ | 98 [[ $MANPATH =~ (^|:)$M($|:) ]] || \ |
101 export MANPATH=${M}${MANPATH:+:$MANPATH} | 99 export MANPATH=${M}${MANPATH:+:$MANPATH} |
102 fi | 100 fi |
103 done | 101 done |
104 | 102 |
105 # Local Perl install | |
106 if [ -d $HOME/perl ]; then | |
107 if [ -d $HOME/perl/lib/perl5 ]; then | |
108 [[ $PERL5LIB =~ (^|:)$HOME/perl/lib/perl5($|:) ]] || \ | |
109 export PERL5LIB=$HOME/perl/lib/perl5${PERL5LIB:+:$PERL5LIB} | |
110 fi | |
111 | |
112 if [ -d $HOME/perl/lib64/perl5 ]; then | |
113 [[ $PERL5LIB =~ (^|:)$HOME/perl/lib64/perl5($|:) ]] || \ | |
114 export PERL5LIB=$HOME/perl/lib64/perl5${PERL5LIB:+:$PERL5LIB} | |
115 fi | |
116 | |
117 if [ -d $HOME/perl/lib/perl5/site_perl ]; then | |
118 [[ $PERL5LIB =~ (^|:)$HOME/perl/lib/perl5/site_perl($|:) ]] || \ | |
119 export PERL5LIB=$HOME/perl/lib/perl5/site_perl${PERL5LIB:+:$PERL5LIB} | |
120 fi | |
121 | |
122 if [ -d $HOME/perl/lib64/perl5/site_perl ]; then | |
123 [[ $PERL5LIB =~ (^|:)$HOME/perl/lib64/perl5/site_perl($|:) ]] || \ | |
124 export PERL5LIB=$HOME/perl/lib64/perl5/site_perl${PERL5LIB:+:$PERL5LIB} | |
125 fi | |
126 | |
127 if [ -d $HOME/perl/share/man ]; then | |
128 [[ $MANPATH =~ (^|:)$HOME/perl/share/man($|:) ]] || \ | |
129 export MANPATH=$HOME/perl/share/man:${MANPATH:+$MANPATH} | |
130 fi | |
131 | |
132 if [ -d $HOME/perl/bin ]; then | |
133 [[ $PATH =~ (^|:)$HOME/perl/bin($|:) ]] || \ | |
134 export PATH=$HOME/perl/bin${PATH:+:$PATH} | |
135 fi | |
136 fi | |
137 | |
138 # Local install paths - install things to $HOME/Installs directories, and | 103 # Local install paths - install things to $HOME/Installs directories, and |
139 # they will automatically get the proper paths added. Most things | 104 # they will automatically get the proper paths added. Most things |
140 # that use autoconf will do this with | 105 # that use autoconf will do this with |
141 # './configure --prefix=$HOME/Installs' | 106 # './configure --prefix=$HOME/Installs' |
142 for D in $HOME/Installs/* ; do | 107 for D in $HOME/Installs/* ; do |
153 if [ -d $D/man ]; then | 118 if [ -d $D/man ]; then |
154 [[ $MANPATH =~ (^|:)$D/man($|:) ]] || \ | 119 [[ $MANPATH =~ (^|:)$D/man($|:) ]] || \ |
155 export MANPATH=$D/man:${MANPATH:+$MANPATH} | 120 export MANPATH=$D/man:${MANPATH:+$MANPATH} |
156 fi | 121 fi |
157 done | 122 done |
158 | |
159 ## Add-ons for Intel compilers at work, and Condor | |
160 #INTEL_ARCH='' | |
161 #case `uname -p` in | |
162 # i[3456]86) | |
163 # INTEL_ARCH="ia32" | |
164 # ;; | |
165 # | |
166 # x86_64) | |
167 # INTEL_ARCH="intel64" | |
168 # ;; | |
169 #esac | |
170 #[[ "$INTEL_ARCH" ]] && { | |
171 # [[ $PATH =~ (^|:)/usr/peyton/intel ]] || { | |
172 # [[ -f /usr/peyton/intel/11.0/bin/iccvars.sh ]] && \ | |
173 # . /usr/peyton/intel/11.0/bin/iccvars.sh $INTEL_ARCH | |
174 # [[ -f /usr/peyton/intel/11.0/bin/ifortvars.sh ]] && \ | |
175 # . /usr/peyton/intel/11.0/bin/ifortvars.sh $INTEL_ARCH | |
176 # } | |
177 #} | |
178 | |
179 #if [ -f /u/condor/condor-setup.sh ]; then | |
180 # [[ $PATH =~ (^|:)/u/condor/hosts/`hostname -s`/sbin($|:) ]] || { | |
181 # export PATH=${PATH:+$PATH:}/u/condor/hosts/`hostname -s`/sbin | |
182 # . /u/condor/condor-setup.sh | |
183 # } | |
184 #fi | |
185 | 123 |
186 # Now make sure $HOME/bin is top of the list (or at least present) | 124 # Now make sure $HOME/bin is top of the list (or at least present) |
187 if [ -d $HOME/bin ]; then | 125 if [ -d $HOME/bin ]; then |
188 [[ $PATH =~ (^|:)$HOME/bin($|:) ]] || \ | 126 [[ $PATH =~ (^|:)$HOME/bin($|:) ]] || \ |
189 export PATH=$HOME/bin${PATH:+:$PATH} | 127 export PATH=$HOME/bin${PATH:+:$PATH} |