# standard .ek_bashrc (sourced by per-machine .bash_profile) #================================================================== # source sensitive data in private_bashrc if it exists if [ -f ~/.private_bashrc ]; then source ~/.private_bashrc fi # add ~/bin to path if it exists if [ -d ~/bin ] ; then export PATH=$PATH:~/bin fi # add ~/tmp if it exists if test ! -d ~/tmp; then mkdir ~/tmp fi export TEMP=~/tmp # append, don't overwrite the history list on each shell / terminal exit shopt -s histappend # set username@host and current path into terminal title export PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007";history -a' # Set shell prompt (\e]2;titlebar\a defines title bar) #export PS1='\e]2;\u@\H\a\h:\w # ' export PS1='\h:\w # ' export HTML_TIDY='~/.htmltidyrc' # estimated 5000 commands run per month export HISTSIZE=30000 export HISTIGNORE="&:ls:l:ll" # command aliases alias l='ls -lh' alias ll='ls -alh' alias psg='ps auxww | grep -i' alias ':e'='vi ' alias svi='sudo vim ' alias diff='diff -u' alias ..='cd ..' alias c='cd ~ && clear' alias st='vi -n ~/tmp/scratchpad' alias ek_wd='cadaver http://wd.ekingery.com/ek/notes' alias tdh='ssh www.ekingery.com'