booch /.bash_aliases

A few aliases. Probably need to move the non-aliases (especially PAGER and LESSCHARSET) to .bashrc file.
# enable color support of ls and also add handy aliases
if [ "$TERM" != "dumb" ]; then
    eval "`dircolors -b`"
    alias ls='ls --color=auto -h'
    alias dir='ls --color=auto --format=vertical'
fi

# some more ls aliases
alias ll='ls -lAFGh'
alias l='ls -lAFGh'
alias ltr='ls -ltrAFGh'

alias cd='pushd'
alias pop='popd'
alias home='pushd ~'
alias ..='cd ..'

alias du='du -kh'
alias df='df -kTh'

alias lstrings='strings $1 | less'

alias tree='tree -Csu'          # nice alternative to 'ls'

alias more='less'
alias kess='less'
alias ks='ls'
alias xs='cd'

ulimit -S -c 0        # Don't want any coredumps
set -o notify           # ???
shopt -u mailwarn
unset MAILCHECK       # I don't want my shell to warn me of incoming mail


export PAGER=less
export LESSCHARSET='latin1'

# Show top 10 most frequent items in the list piped in. Can specify top 20 with 'top10 -20'.
alias top10='sort | uniq -c | sort -nr | head'


alias ssh-esi-tunnel="sudo ssh -t -l booch -2 -L 22:esiprograms.com:22 bud.sluug.org 'ssh -t craigb@esiprograms.com'"

# From RailsTips.org:
# Use: cdgem , cd's into your gems directory and opens gem that best matches the gem name provided.
function cdgem {
  cd $GEM_HOME/gems/; cd `ls|grep $1|sort|tail -1`
}


# If htop is installed, use it instead of top.
if type -P htop >/dev/null; then
  alias top=htop
fi