# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
	. /etc/bashrc
fi

# User specific aliases and functions
PATH=$PATH":./"
shopt -s cdspell extglob dotglob

alias hd='hexdump -C'         # hexdump in canonical form
alias ls='ls --color=auto'    # colour for ls
alias ptty='ps -F S -t'       # ps for this terminal only
alias psgrep="ps -ef | grep"  # like pgrep
alias ssx="ssh -X"            # ssh with graphics

# rpn calculator
function rpn() { echo "3 k $* p q" | dc; return; }

# make dir and cd
function mkcd() { mkdir -p "$@" && eval cd "\"\$$#\""; return; }

# rotate 13
function rot() { echo "$*" | tr '[a-mA-Mn-zN-Z]' '[n-zN-Za-mA-M]' ; return; }
