|
|
@@ -56,16 +56,16 @@ function _git_status() { |
|
|
|
|
|
|
|
set_prompt() { |
|
|
|
local lec="$?" |
|
|
|
if [ $FORCE_COLOR_PROMPT = yes ]; then |
|
|
|
if [ $COLOR_PROMPT = yes ]; then |
|
|
|
if [ $lec -ne 0 ]; then |
|
|
|
smilie="${RED}:(${NORMAL}" |
|
|
|
else |
|
|
|
smilie="${GREEN}:)${NORMAL}" |
|
|
|
fi |
|
|
|
PS1="${debian_chroot:+($debian_chroot)}${GREEN}\u${NORMAL}|${BLUE}\w${NORMAL}|${smilie}|$(_git_status)\$ " |
|
|
|
PS1="${debian_chroot:+($debian_chroot)}${BG_PURPLE}${GREEN}\u${NORMAL}${BG_PURPLE}|${BLUE}\w${NORMAL}${BG_PURPLE}|${smilie}${BG_PURPLE}|$(_git_status)${PURPLE}► " |
|
|
|
else |
|
|
|
PS1="${debian_chroot:+($debian_chroot)}\u@\h:\w\$ " |
|
|
|
fi |
|
|
|
} |
|
|
|
|
|
|
|
PROMPT_COMMAND="set_prompt" |
|
|
|
PROMPT_COMMAND="set_prompt" |