9eb694354f6c999138a6ab1974500828602908b8
David Blume first commit

David Blume authored 8 years ago

1) export PS1="\W\$ "
2) 
3) add_to_path() {
4)     if [ -d "$1" ] && [[ ! $PATH =~ (^|:)$1(:|$) ]]; then
5)         PATH+=:$1
6)     fi
7) }
8) 
9) # if this is a CygWin .bashrc, then set CygWin's commands first in PATH
10) # because link.exe and find.exe exist in Windows's path.
11) # Add /usr/lib/lapack at the end so python's numpy can find lapack_lite
12) # (Note: BSD bash, used by OS X doesn't have the "substr" test for expr.)
13) if [[ $(uname -s) == CYGWIN* ]]; then
David Blume Use spaces instead of tabs.

David Blume authored 8 years ago

14)     PATH=/usr/local/bin:/usr/bin:$PATH
15)     PATH=${PATH//":/usr/local/bin:/usr/bin"/} # delete any instances in middle
16)     add_to_path /usr/lib/lapack
17)     ulimit -n 1024 # for "duplicity"
18)     alias ls='ls --color=auto'
David Blume first commit

David Blume authored 8 years ago

19) elif [[ $(uname -s) == Darwin* ]]; then
David Blume Use spaces instead of tabs.

David Blume authored 8 years ago

20)     export LSCOLORS=gxfxcxdxbxegedabagacad
21)     export CLICOLOR=1
David Blume first commit

David Blume authored 8 years ago

22) fi
23) 
24) # change the color of directories in the ls command 
25) #
26) # After executing: dircolors -p > .dircolors
27) # And changing the following line in .dircolors:
28) # DIR 00;36 # directory
29) if [ "$TERM" != "dumb" ]; then
David Blume Use spaces instead of tabs.

David Blume authored 8 years ago

30)     [ -e "$HOME/.dircolors" ] && DIR_COLORS="$HOME/.dircolors"
31)     [ -e "$DIR_COLORS" ] || DIR_COLORS=""
32)     eval "`dircolors -b $DIR_COLORS`"