65d2fa1c8219ba0b231d1ce599fbf743dcf7d036
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
David Blume Add alias for colors in ls...

David Blume authored 8 years ago

27) # Lighten the color of directories from blue to light blue
28) # sed -i '/# directory/c\DIR 00;36 # directory' .dircolors
29) if [ -x /usr/bin/dircolors ]; then
30)     test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
31)     alias ls='ls --color=auto'
David Blume first commit

David Blume authored 8 years ago

32) fi
33) 
David Blume Add alias for colors in ls...

David Blume authored 8 years ago

34) alias grep='grep --color=auto'
35) alias fgrep='fgrep --color=auto'
36) alias egrep='egrep --color=auto'
37) 
38) # colored GCC warnings and errors
39) export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
40)