Mercurial > index.cgi > dotfiles
comparison .bashrc @ 3:072b183989e0
Merged in changes for the Mac, including the beginnings of platform
deliniation (at least in the .bash_aliases).
author | huston@80426f53-59d1-405d-934b-f07cd76f4a1a |
---|---|
date | Sat, 11 Apr 2009 05:58:03 +0000 |
parents | 7e33b3191cf7 |
children | 6ffd3fb73f7f |
comparison
equal
deleted
inserted
replaced
2:2b4dcc885071 | 3:072b183989e0 |
---|---|
13 # User specific aliases and functions | 13 # User specific aliases and functions |
14 if [ -f $HOME/.bash_aliases ]; then | 14 if [ -f $HOME/.bash_aliases ]; then |
15 . $HOME/.bash_aliases | 15 . $HOME/.bash_aliases |
16 fi | 16 fi |
17 | 17 |
18 # | |
18 # Environment variables | 19 # Environment variables |
20 # | |
19 export PS1='\h:\w\$ ' | 21 export PS1='\h:\w\$ ' |
22 export PAGER=less | |
20 export EDITOR=vim | 23 export EDITOR=vim |
21 | 24 |
25 # | |
22 # Paths | 26 # Paths |
23 | 27 # |
24 # Standard-ish paths; some of these may be in place already, but if | 28 # Standard-ish paths; some of these may be in place already, but if |
25 # they're not they should probably go near the front of the pack. | 29 # they're not they should probably go near the front of the pack. |
26 for P in /sbin /usr/sbin /usr/local/sbin /usr/local/bin ; do | 30 for P in /sbin /usr/sbin /usr/local/bin /usr/local/sbin \ |
31 /opt/local/bin /opt/local/sbin ; do | |
27 [[ "$PATH" =~ $P ]] || \ | 32 [[ "$PATH" =~ $P ]] || \ |
28 export PATH=${P}${PATH:+:$PATH} | 33 export PATH=${P}${PATH:+:$PATH} |
34 done | |
35 | |
36 for M in /usr/local/share/man /usr/local/man /opt/local/share/man ; do | |
37 [[ "$MANPATH" =~ $M ]] || \ | |
38 export MANPATH=${M}${MANPATH:+:$MANPATH} | |
29 done | 39 done |
30 | 40 |
31 # Local Perl install | 41 # Local Perl install |
32 if [ -d ~/perl ]; then | 42 if [ -d ~/perl ]; then |
33 [[ "$PERL5LIB" =~ ~/perl ]] || \ | 43 [[ "$PERL5LIB" =~ ~/perl ]] || \ |