Mercurial > index.cgi > dotfiles
annotate .bashrc @ 19:f65964738bab
Added Id tag to files, and svn propset svn:keywords as appropriate
author | huston@80426f53-59d1-405d-934b-f07cd76f4a1a |
---|---|
date | Wed, 25 Nov 2009 18:43:02 +0000 |
parents | ebc3f864376c |
children | a6c93cf45e90 |
rev | line source |
---|---|
19
f65964738bab
Added Id tag to files, and svn propset svn:keywords as appropriate
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
18
diff
changeset
|
1 # $Id$ |
f65964738bab
Added Id tag to files, and svn propset svn:keywords as appropriate
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
18
diff
changeset
|
2 # |
1
7e33b3191cf7
Merged in settings from home, and at the same time edited some of the
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
0
diff
changeset
|
3 # This file is sourced for shells which are interactive but not a |
7e33b3191cf7
Merged in settings from home, and at the same time edited some of the
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
0
diff
changeset
|
4 # login shell; however, since it is also sourced within |
4
6ffd3fb73f7f
s/\~\//\$HOME\//g - There's possibly a nicer way to make sure tilde expansion
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
3
diff
changeset
|
5 # $HOME/.bash_profile, the end result is that this file is sourced for all |
1
7e33b3191cf7
Merged in settings from home, and at the same time edited some of the
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
0
diff
changeset
|
6 # shells. |
0 | 7 |
8 | |
9 # Source global definitions | |
10 if [ -f /etc/bashrc ]; then | |
11 . /etc/bashrc | |
12 fi | |
1
7e33b3191cf7
Merged in settings from home, and at the same time edited some of the
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
0
diff
changeset
|
13 |
7e33b3191cf7
Merged in settings from home, and at the same time edited some of the
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
0
diff
changeset
|
14 # User specific aliases and functions |
0 | 15 if [ -f $HOME/.bash_aliases ]; then |
16 . $HOME/.bash_aliases | |
17 fi | |
18 | |
3
072b183989e0
Merged in changes for the Mac, including the beginnings of platform
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
1
diff
changeset
|
19 # |
1
7e33b3191cf7
Merged in settings from home, and at the same time edited some of the
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
0
diff
changeset
|
20 # Environment variables |
3
072b183989e0
Merged in changes for the Mac, including the beginnings of platform
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
1
diff
changeset
|
21 # |
16
b9896ae0733c
Stole pretty PS1 and xterm title changing from BackTrack 4. Also added a
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
14
diff
changeset
|
22 [[ "$PS1" ]] && export PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' |
3
072b183989e0
Merged in changes for the Mac, including the beginnings of platform
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
1
diff
changeset
|
23 export PAGER=less |
1
7e33b3191cf7
Merged in settings from home, and at the same time edited some of the
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
0
diff
changeset
|
24 export EDITOR=vim |
13
dacbbae5965c
Added Ruby setup variables
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
9
diff
changeset
|
25 export RUBYLIB=$HOME/Installs/rubygems/lib |
dacbbae5965c
Added Ruby setup variables
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
9
diff
changeset
|
26 export GEM_HOME=$HOME/Installs/rubygems/gems |
1
7e33b3191cf7
Merged in settings from home, and at the same time edited some of the
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
0
diff
changeset
|
27 |
16
b9896ae0733c
Stole pretty PS1 and xterm title changing from BackTrack 4. Also added a
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
14
diff
changeset
|
28 # If this is an xterm set the title to user@host:dir |
b9896ae0733c
Stole pretty PS1 and xterm title changing from BackTrack 4. Also added a
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
14
diff
changeset
|
29 case "$TERM" in |
b9896ae0733c
Stole pretty PS1 and xterm title changing from BackTrack 4. Also added a
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
14
diff
changeset
|
30 xterm*|rxvt*) |
b9896ae0733c
Stole pretty PS1 and xterm title changing from BackTrack 4. Also added a
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
14
diff
changeset
|
31 PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"' |
b9896ae0733c
Stole pretty PS1 and xterm title changing from BackTrack 4. Also added a
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
14
diff
changeset
|
32 ;; |
b9896ae0733c
Stole pretty PS1 and xterm title changing from BackTrack 4. Also added a
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
14
diff
changeset
|
33 *) |
b9896ae0733c
Stole pretty PS1 and xterm title changing from BackTrack 4. Also added a
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
14
diff
changeset
|
34 ;; |
b9896ae0733c
Stole pretty PS1 and xterm title changing from BackTrack 4. Also added a
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
14
diff
changeset
|
35 esac |
b9896ae0733c
Stole pretty PS1 and xterm title changing from BackTrack 4. Also added a
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
14
diff
changeset
|
36 |
3
072b183989e0
Merged in changes for the Mac, including the beginnings of platform
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
1
diff
changeset
|
37 # |
1
7e33b3191cf7
Merged in settings from home, and at the same time edited some of the
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
0
diff
changeset
|
38 # Paths |
3
072b183989e0
Merged in changes for the Mac, including the beginnings of platform
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
1
diff
changeset
|
39 # |
1
7e33b3191cf7
Merged in settings from home, and at the same time edited some of the
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
0
diff
changeset
|
40 # Standard-ish paths; some of these may be in place already, but if |
7e33b3191cf7
Merged in settings from home, and at the same time edited some of the
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
0
diff
changeset
|
41 # they're not they should probably go near the front of the pack. |
3
072b183989e0
Merged in changes for the Mac, including the beginnings of platform
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
1
diff
changeset
|
42 for P in /sbin /usr/sbin /usr/local/bin /usr/local/sbin \ |
072b183989e0
Merged in changes for the Mac, including the beginnings of platform
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
1
diff
changeset
|
43 /opt/local/bin /opt/local/sbin ; do |
4
6ffd3fb73f7f
s/\~\//\$HOME\//g - There's possibly a nicer way to make sure tilde expansion
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
3
diff
changeset
|
44 [[ "$PATH" =~ "(^|:)$P($|:)" ]] || \ |
1
7e33b3191cf7
Merged in settings from home, and at the same time edited some of the
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
0
diff
changeset
|
45 export PATH=${P}${PATH:+:$PATH} |
7e33b3191cf7
Merged in settings from home, and at the same time edited some of the
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
0
diff
changeset
|
46 done |
0 | 47 |
3
072b183989e0
Merged in changes for the Mac, including the beginnings of platform
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
1
diff
changeset
|
48 for M in /usr/local/share/man /usr/local/man /opt/local/share/man ; do |
4
6ffd3fb73f7f
s/\~\//\$HOME\//g - There's possibly a nicer way to make sure tilde expansion
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
3
diff
changeset
|
49 [[ "$MANPATH" =~ "(^|:)$M($|:)" ]] || \ |
3
072b183989e0
Merged in changes for the Mac, including the beginnings of platform
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
1
diff
changeset
|
50 export MANPATH=${M}${MANPATH:+:$MANPATH} |
072b183989e0
Merged in changes for the Mac, including the beginnings of platform
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
1
diff
changeset
|
51 done |
072b183989e0
Merged in changes for the Mac, including the beginnings of platform
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
1
diff
changeset
|
52 |
1
7e33b3191cf7
Merged in settings from home, and at the same time edited some of the
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
0
diff
changeset
|
53 # Local Perl install |
4
6ffd3fb73f7f
s/\~\//\$HOME\//g - There's possibly a nicer way to make sure tilde expansion
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
3
diff
changeset
|
54 if [ -d $HOME/perl ]; then |
6ffd3fb73f7f
s/\~\//\$HOME\//g - There's possibly a nicer way to make sure tilde expansion
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
3
diff
changeset
|
55 [[ "$PERL5LIB" =~ "(^|:)$HOME/perl($|:)" ]] || \ |
6ffd3fb73f7f
s/\~\//\$HOME\//g - There's possibly a nicer way to make sure tilde expansion
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
3
diff
changeset
|
56 export PERL5LIB=$HOME/perl${PERL5LIB:+:$PERL5LIB} |
1
7e33b3191cf7
Merged in settings from home, and at the same time edited some of the
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
0
diff
changeset
|
57 |
4
6ffd3fb73f7f
s/\~\//\$HOME\//g - There's possibly a nicer way to make sure tilde expansion
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
3
diff
changeset
|
58 if [ -d $HOME/perl/share/man ]; then |
6ffd3fb73f7f
s/\~\//\$HOME\//g - There's possibly a nicer way to make sure tilde expansion
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
3
diff
changeset
|
59 [[ "$MANPATH" =~ "(^|:)$HOME/perl/share/man($|:)" ]] || \ |
6ffd3fb73f7f
s/\~\//\$HOME\//g - There's possibly a nicer way to make sure tilde expansion
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
3
diff
changeset
|
60 export MANPATH=$HOME/perl/share/man:${MANPATH:+$MANPATH} |
1
7e33b3191cf7
Merged in settings from home, and at the same time edited some of the
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
0
diff
changeset
|
61 fi |
7e33b3191cf7
Merged in settings from home, and at the same time edited some of the
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
0
diff
changeset
|
62 |
4
6ffd3fb73f7f
s/\~\//\$HOME\//g - There's possibly a nicer way to make sure tilde expansion
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
3
diff
changeset
|
63 if [ -d $HOME/perl/bin ]; then |
6ffd3fb73f7f
s/\~\//\$HOME\//g - There's possibly a nicer way to make sure tilde expansion
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
3
diff
changeset
|
64 [[ "$PATH" =~ "(^|:)$HOME/perl/bin($|:)" ]] || \ |
6ffd3fb73f7f
s/\~\//\$HOME\//g - There's possibly a nicer way to make sure tilde expansion
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
3
diff
changeset
|
65 export PATH=$HOME/perl/bin${PATH:+:$PATH} |
1
7e33b3191cf7
Merged in settings from home, and at the same time edited some of the
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
0
diff
changeset
|
66 fi |
7e33b3191cf7
Merged in settings from home, and at the same time edited some of the
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
0
diff
changeset
|
67 fi |
0 | 68 |
4
6ffd3fb73f7f
s/\~\//\$HOME\//g - There's possibly a nicer way to make sure tilde expansion
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
3
diff
changeset
|
69 # Local install paths - install things to $HOME/Installs directories, and |
1
7e33b3191cf7
Merged in settings from home, and at the same time edited some of the
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
0
diff
changeset
|
70 # they will automatically get the proper paths added. Most things |
7e33b3191cf7
Merged in settings from home, and at the same time edited some of the
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
0
diff
changeset
|
71 # that use autoconf will do this with |
4
6ffd3fb73f7f
s/\~\//\$HOME\//g - There's possibly a nicer way to make sure tilde expansion
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
3
diff
changeset
|
72 # './configure --prefix=$HOME/Installs' |
6ffd3fb73f7f
s/\~\//\$HOME\//g - There's possibly a nicer way to make sure tilde expansion
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
3
diff
changeset
|
73 for D in $HOME/Installs/* ; do |
1
7e33b3191cf7
Merged in settings from home, and at the same time edited some of the
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
0
diff
changeset
|
74 if [ -d $D/bin ]; then |
4
6ffd3fb73f7f
s/\~\//\$HOME\//g - There's possibly a nicer way to make sure tilde expansion
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
3
diff
changeset
|
75 [[ "$PATH" =~ "(^|:)$D/bin($|:)" ]] || \ |
1
7e33b3191cf7
Merged in settings from home, and at the same time edited some of the
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
0
diff
changeset
|
76 export PATH=$D/bin${PATH:+:$PATH} |
7e33b3191cf7
Merged in settings from home, and at the same time edited some of the
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
0
diff
changeset
|
77 fi |
7e33b3191cf7
Merged in settings from home, and at the same time edited some of the
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
0
diff
changeset
|
78 |
7e33b3191cf7
Merged in settings from home, and at the same time edited some of the
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
0
diff
changeset
|
79 if [ -d $D/share/man ]; then |
4
6ffd3fb73f7f
s/\~\//\$HOME\//g - There's possibly a nicer way to make sure tilde expansion
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
3
diff
changeset
|
80 [[ "$MANPATH" =~ "(^|:)$D/share/man($|:)" ]] || \ |
1
7e33b3191cf7
Merged in settings from home, and at the same time edited some of the
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
0
diff
changeset
|
81 export MANPATH=$D/share/man:${MANPATH:+$MANPATH} |
7e33b3191cf7
Merged in settings from home, and at the same time edited some of the
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
0
diff
changeset
|
82 fi |
7e33b3191cf7
Merged in settings from home, and at the same time edited some of the
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
0
diff
changeset
|
83 |
7e33b3191cf7
Merged in settings from home, and at the same time edited some of the
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
0
diff
changeset
|
84 if [ -d $D/man ]; then |
4
6ffd3fb73f7f
s/\~\//\$HOME\//g - There's possibly a nicer way to make sure tilde expansion
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
3
diff
changeset
|
85 [[ "$MANPATH" =~ "(^|:)$D/man($|:)" ]] || \ |
1
7e33b3191cf7
Merged in settings from home, and at the same time edited some of the
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
0
diff
changeset
|
86 export MANPATH=$D/man:${MANPATH:+$MANPATH} |
7e33b3191cf7
Merged in settings from home, and at the same time edited some of the
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
0
diff
changeset
|
87 fi |
0 | 88 done |
1
7e33b3191cf7
Merged in settings from home, and at the same time edited some of the
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
0
diff
changeset
|
89 |
5
3d0de329a850
Merged in new lines for network environment at work
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
4
diff
changeset
|
90 # Add-ons for Intel compilers at work, and Condor |
3d0de329a850
Merged in new lines for network environment at work
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
4
diff
changeset
|
91 [[ -f /usr/peyton/intel/10.1/cc64/bin/iccvars.sh ]] && \ |
3d0de329a850
Merged in new lines for network environment at work
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
4
diff
changeset
|
92 . /usr/peyton/intel/10.1/cc64/bin/iccvars.sh |
3d0de329a850
Merged in new lines for network environment at work
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
4
diff
changeset
|
93 [[ -f /usr/peyton/intel/10.1/fc64/bin/ifortvars.sh ]] && \ |
3d0de329a850
Merged in new lines for network environment at work
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
4
diff
changeset
|
94 . /usr/peyton/intel/10.1/fc64/bin/ifortvars.sh |
9
09e941fe3c02
Added Condor's sbin path
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
5
diff
changeset
|
95 [[ -f /u/condor/condor-setup.sh ]] && { |
09e941fe3c02
Added Condor's sbin path
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
5
diff
changeset
|
96 export PATH=${PATH:+$PATH:}/u/condor/hosts/`hostname -s`/sbin |
5
3d0de329a850
Merged in new lines for network environment at work
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
4
diff
changeset
|
97 . /u/condor/condor-setup.sh |
9
09e941fe3c02
Added Condor's sbin path
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
5
diff
changeset
|
98 } |
5
3d0de329a850
Merged in new lines for network environment at work
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
4
diff
changeset
|
99 |
4
6ffd3fb73f7f
s/\~\//\$HOME\//g - There's possibly a nicer way to make sure tilde expansion
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
3
diff
changeset
|
100 # Now make sure $HOME/bin is top of the list (or at least present) |
6ffd3fb73f7f
s/\~\//\$HOME\//g - There's possibly a nicer way to make sure tilde expansion
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
3
diff
changeset
|
101 if [ -d $HOME/bin ]; then |
6ffd3fb73f7f
s/\~\//\$HOME\//g - There's possibly a nicer way to make sure tilde expansion
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
3
diff
changeset
|
102 [[ "$PATH" =~ "(^|:)$HOME/bin($|:)" ]] || \ |
6ffd3fb73f7f
s/\~\//\$HOME\//g - There's possibly a nicer way to make sure tilde expansion
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
3
diff
changeset
|
103 export PATH=$HOME/bin${PATH:+:$PATH} |
1
7e33b3191cf7
Merged in settings from home, and at the same time edited some of the
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
0
diff
changeset
|
104 fi |
4
6ffd3fb73f7f
s/\~\//\$HOME\//g - There's possibly a nicer way to make sure tilde expansion
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
3
diff
changeset
|
105 |
6ffd3fb73f7f
s/\~\//\$HOME\//g - There's possibly a nicer way to make sure tilde expansion
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
3
diff
changeset
|
106 # Last, make sure to end MANPATH with a ':' to force include of system paths |
6ffd3fb73f7f
s/\~\//\$HOME\//g - There's possibly a nicer way to make sure tilde expansion
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
3
diff
changeset
|
107 # (some versions of man take care of this, but it doesn't hurt to have it |
6ffd3fb73f7f
s/\~\//\$HOME\//g - There's possibly a nicer way to make sure tilde expansion
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
3
diff
changeset
|
108 # anyway) |
6ffd3fb73f7f
s/\~\//\$HOME\//g - There's possibly a nicer way to make sure tilde expansion
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
3
diff
changeset
|
109 [[ "$MANPATH" =~ ":$" ]] || export MANPATH=$MANPATH: |
18
ebc3f864376c
Removed the LD_LIBRARY_PATH lines entirely since I've not seen any ill effects
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
17
diff
changeset
|
110 |
ebc3f864376c
Removed the LD_LIBRARY_PATH lines entirely since I've not seen any ill effects
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
17
diff
changeset
|
111 # Store MIBs in ~/mibs and they'll be added here. Can nest directories |
ebc3f864376c
Removed the LD_LIBRARY_PATH lines entirely since I've not seen any ill effects
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
17
diff
changeset
|
112 # (they'll be searched). |
ebc3f864376c
Removed the LD_LIBRARY_PATH lines entirely since I've not seen any ill effects
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
17
diff
changeset
|
113 if [ -d $HOME/mibs ]; then |
ebc3f864376c
Removed the LD_LIBRARY_PATH lines entirely since I've not seen any ill effects
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
17
diff
changeset
|
114 for D in `find $HOME/mibs -type d` ; do |
ebc3f864376c
Removed the LD_LIBRARY_PATH lines entirely since I've not seen any ill effects
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
17
diff
changeset
|
115 [[ "$MIBDIRS" =~ "(^\+|:)$D($|:)" ]] || \ |
ebc3f864376c
Removed the LD_LIBRARY_PATH lines entirely since I've not seen any ill effects
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
17
diff
changeset
|
116 export MIBDIRS=${MIBDIRS:+$MIBDIRS:}$D |
ebc3f864376c
Removed the LD_LIBRARY_PATH lines entirely since I've not seen any ill effects
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
17
diff
changeset
|
117 done |
ebc3f864376c
Removed the LD_LIBRARY_PATH lines entirely since I've not seen any ill effects
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
17
diff
changeset
|
118 |
ebc3f864376c
Removed the LD_LIBRARY_PATH lines entirely since I've not seen any ill effects
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
17
diff
changeset
|
119 [[ "$MIBDIRS" =~ "^\+" ]] || export MIBDIRS=+$MIBDIRS |
ebc3f864376c
Removed the LD_LIBRARY_PATH lines entirely since I've not seen any ill effects
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
17
diff
changeset
|
120 export MIBS=ALL |
ebc3f864376c
Removed the LD_LIBRARY_PATH lines entirely since I've not seen any ill effects
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
17
diff
changeset
|
121 fi |