# protect this file from being executed non-interactively (typically rshd) [[ $- != *i* ]] && return [[ $PS1 ]] || return complete -p complete >/dev/null 2>&1 || . /etc/bash_completion # colours yay if [[ $TERM != dumb ]]; then eval "$(dircolors -b)" PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] ' fi case "$TERM" in xterm*|rxvt*|screen) PROMPT_COMMAND=$'printf "%s" "\e]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\a"';; esac irc() { screen -d -r -U irc } startirc() { screen -d -m -U -S irc irssi } grep() { if [ -t 1 ]; then command grep --color=auto "$@" else command grep "$@" fi } ls() { if [ -t 1 ]; then command ls -h --color=auto "$@" else command ls "$@" fi } # turn off "!" history event crap set +o histexpand # ^s halting the terminal? computer says nooo stty stop undef start undef [[ -f ~/cronlog ]] && cat ~/cronlog date