Multi-line command prompt with full path.

This commit is contained in:
Andrew Tomaka 2012-07-23 14:46:53 -04:00
parent ec56ae65ab
commit 24c1ab970d

View file

@ -12,13 +12,13 @@ fi
# Case insensitive matching # Case insensitive matching
shopt -s nocaseglob shopt -s nocaseglob
PS1='\[\t\]' PS1="\e[1;34m[\t] \w\n"
# Prompt color based on location # Prompt color based on location
if [ "$SSH_CONNECTION" == "" ]; then if [ "$SSH_CONNECTION" == "" ]; then
# Yellow prompt for local login # Yellow prompt for local login
PS1="$PS1\[\e[1;32m\][\u@\h \W]" PS1="$PS1\[\e[1;32m\][\u@\h]"
else else
PS1="$PS1\[\e[1;33m\][\u@\h \W]" PS1="$PS1\[\e[1;33m\][\u@\h]"
fi fi
# Ripped from Doug - color based on return code # Ripped from Doug - color based on return code