# .bashrc for Miki Tebeka <miki@ewtllc.com>
# Source global definitions
if [ -d /etc/profile.d ]; then
for file in /etc/profile.d/*.sh
do
if [ "`basename $file`" == "bsd-games-login-fortune.sh" ]; then
continue
fi
source $file
done
fi
# Use VI keybindings
set -o vi
# Editor is VIm
export EDITOR=vim
export VISUAL=$EDITOR
# Subversion root
export SVNROOT=file:///home/mtebeka/.SVNROOT
# Use "merge" in Mercurial
export HGMERGE=merge
# Find right java
if [ "`uname`" == "Linux" ]; then
export JAVA_HOME=/opt/jdk1.6.0_02
fi
# Path
if [ "`uname`" == "Darwin" ]; then
export PATH="/sw/bin:$PATH"
export PATH="/opt/local/bin:$PATH"
export PATH="/usr/local/bin:$PATH"
export MAGICK_HOME="/opt/ImageMagick-6.3.5"
export PATH="$PATH:$MAGICK_HOME/bin"
pybin=`python -c 'import sys; print sys.prefix'`/bin
export PATH="${PATH}:${pybin}"
export DYLD_LIBRARY_PATH="$MAGICK_HOME/lib"
fi
export PATH="/usr/local/WordNet-3.0/bin:$PATH"
export PATH="/usr/local/Trolltech/Qt-4.3.3/bin:$PATH"
export PATH="$HOME/bin:$PATH"
export BRWOSER=/usr/bin/firefox
# Python site-package
PYSITE=`
cat << EOF | python
from distutils.sysconfig import get_config_var
print get_config_var("LIBDEST")
EOF`
export PYSITE="$PYSITE/site-packages"
# Complete specs
complete -C "spec -m" spec
if [ -n "$PS1" ]; then # Interactive session
# Prompt
PS1="\[\033]0;\u@\h: \w\007\]"
if [ "`uname`" == "Darwin" ]; then
PS1="${PS1}${PS_DGREEN}\u${PS_YELLOW}@${PS_DGREEN}\h:\w - \A \\$ "
else
PS1="${PS1}${PS_DGREEN}\u${PS_YELLOW}@${PS_DGREEN}\h:\W - \A \\$ "
fi
PS1="${PS1}${PS_NORMAL}"
# CD path
export CDPATH=".:$HOME:$HOME/work/newsflash:$HOME/work:$HOME/work/fattoc"
export CDPATH="$CDPATH:$HOME/work/sandbox/mtebeka:$HOME/src"
export CDPATH="$CDPATH:$HOME/work/fattoc/sniper/src"
# Aliases and functions
source $HOME/.aliases
source $HOME/.functions
source $HOME/.bash_completion
# Spell
shopt -s cdspell
# Don't store duplicates in history
export HISTCONTROL="ignoredupes"
# keychain
if which keychain > /dev/null 2>&1; then
eval `keychain -q --eval`
fi
if [ -z "$SSH_CLIENT" ]; then
echo
echo
echo
echo
echo " Lets boogie, Mr. Swine"
echo
echo
echo
echo
if which fortune > /dev/null 2>&1; then
fortune
fi
fi
fi # [ ! -z "$PS1" ]