# Make sure the profile gets loaded first export JOBS="\`[[ \j -gt 0 ]] && echo [\j job\$([[ \j -gt 1 ]] && echo 's')]\ \`" export PS1="$JOBS\[\e[32m\][\[\e[0;31m\]\u\[\e[0;32m\]@\[\e[0;34m\]\h\[\e[0;32m\]] \[\e[0;33m\]\w\[\e[0m\] "; # check the window size after each command and, if necessary, # update the values of LINES and COLUMNS. shopt -s checkwinsize # case-sensitive tab-completion if for chumps set completion-ignore-case on # Change the window title of X terminals case $TERM in xterm*|rxvt*|Eterm) PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"' ;; screen) PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"' ;; esac source ~/.profile || return