~ nzeer /.bash_profile

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

PROMPT_COLOR='35;1m'

# Bright red prompt if we're root
if [ ${UID} -eq 0 ]; then
  PROMPT_COLOR='1;31m'
fi

# SSH Auto Completion of Remote Hosts
SSH_COMPLETE=( $(cat ~/.ssh/known_hosts | cut -f 1 -d ' ' | sed -e s/,.*//g | uniq | egrep -v [0123456789]) )
complete -o default -W "${SSH_COMPLETE[*]}" ssh

export EDITOR='vim'
export VISUAL=$EDITOR
export SVN_EDITOR=$EDITOR
export GIT_EDITOR=$EDITOR
export HISTSIZE=5000
export CSCOPE_EDITOR=$EDITOR

complete -cf sudo        # Tab complete for sudo

alias back='cd $OLDPWD'
alias df='df -h'
alias mkdir='mkdir -p -v'
alias pgrep="pgrep -l"
alias lw='ls -ahxp --color=auto'
alias ll='ls -lashp --color=auto'
alias grep='grep --color=auto -i'
# Safties. Should keep these...
alias xterm="xterm -bg black -fg green"
alias rm="rm -iv"
alias mv="mv -iv"
alias cp="cp -iv"
PS1='\[\033[01;32m\]\u\[\033[00m\]@\[\033[01;36m\]\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
export PS1

### Set vi line-editing mode for command line ###
set -o vi

### Set tab-completion to be case-insensitive
set completion-ignore-case

### Show all tab-completed matches
set show-all-if-ambiguous

### Set all symlinked-directories to be shown
set show-all-symlinked-directories


# User specific environment and startup programs
PYTHONPATH=$PYTHONPATH:~/svn/current-slip/usr/lib/python2.4/site-packages
PYTHONPATH=$PYTHONPATH:~/svn/current-phrotools/lib
# Import global paths last.
PYTHONPATH=$PYTHONPATH:/usr/lib/python2.4/site-packages

PATH=$PATH:$HOME/bin
export PYTHONPATH
export PATH