Source

dotfiles / bashrc

Full commit
# Make sure the profile gets loaded first
export __ps1_jobs="\`[[ \j -gt 0 ]] && echo [\j job\$([[ \j -gt 1 ]] && echo 's')]\  \`"
export PS1="$__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


# 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 ~/.bashrc.local
source ~/.profile || return