Multi-line command prompt with full path.
This commit is contained in:
parent
ec56ae65ab
commit
24c1ab970d
1 changed files with 3 additions and 3 deletions
6
.bashrc
6
.bashrc
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue