~ tcort /.bash_profile

# Thomas Cort <tom@tomcort.com>
# Last update: Tue Mar 11 14:23:21 EDT 2008

# include .bashrc if it exists
if [ -f ~/.bashrc ]
then
        . ~/.bashrc
fi

# include .bash_aliases
if [ -f ~/.bash_aliases ];
then
        . ~/.bash_aliases
fi

# enable bash completion
if [ -f /etc/bash_completion ]
then
        . /etc/bash_completion
fi

# Check for window resize after every command
shopt -s checkwinsize

# No core dumps
ulimit -S -c 0

# automatically log out after 10 minutes of inactivity
export TMOUT=600

# No messages about new e-mail
shopt -u mailwarn
unset MAILCHECK

# command history
export HISTCONTROL=ignoredups
export HISTSIZE=1000
export HISTFILESIZE=1000

# Set command prompt
export PS1="\[\e[1;32m\]"`whoami`"\[\e[m\]\[\e[0;36m\]@\[\e[m\]\[\e[1;31m\]"`hostname`"\[\e[m\]\[\e[0;36m\]:\[\e[m\]\[\e[1;33m\]\w\[\e[m\]"`echo "\n\r"`"\[\e[1;37m\] $ \[\e[m\]"

# Set editor to vim
export EDITOR=vim
export VISUAL=vim
export CVSEDITOR=vim
export SVN_EDITOR=vim

# Enable vi key bindings
set -o vi

# git
export GIT_AUTHOR_EMAIL="tom@tomcort.com"
export GIT_COMMITTER_EMAIL="tom@tomcort.com"

# 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 

# sudo Auto Completion
complete -cf sudo

# use ssh for remote shell
export CVS_RSH=ssh
export RSYNC_RSH=ssh

# ^l clear screen
bind -m vi-insert "\C-l":clear-screen

# less is more
export PAGER=less

# Use UTF-8 Character Set
export LESSCHARSET=utf-8
export LC_ALL="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"
export LANG=en_US.UTF-8

export PATH="/usr/local/maven/bin:$PATH"

# Display my fortune at login
if [ -x /usr/games/fortune ]
then
        echo ""
        /usr/games/fortune -s
        echo ""
fi

if [ -x /usr/bin/ddate ]
then
        /usr/bin/ddate
fi  
Your Ad Here