[ -z "$XDG_CONFIG_HOME" ] && source "$HOME"/.profile [ -f /etc/bashrc ] && . /etc/bashrc shopt -s histappend shopt -s checkwinsize case "$TERM" in xterm-color | *-256color) color_prompt=yes ;; esac unset color_prompt force_color_prompt if [ -x /usr/bin/dircolors ]; then test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" alias ls='ls --color=auto' alias grep='grep --color=auto' alias fgrep='fgrep --color=auto' alias egrep='egrep --color=auto' fi if ! shopt -oq posix; then if [ -f /usr/share/bash-completion/bash_completion ]; then . /usr/share/bash-completion/bash_completion elif [ -f /etc/bash_completion ]; then . /etc/bash_completion fi fi ############### Everything below this line are customizations ################## # Do not let globbing complain on no match shopt -s nullglob ## When only a directory is entered without cd, cd into it shopt -s autocd PROMPT_COMMAND=jazz_my_prompt jazz_my_prompt() { # Capture exit code of last command # Below MUST be the 1st line of the function local ex=$? #----------------------------------------------------------------------------# # Bash text colour specification: \e[;