| set_prompt() { | set_prompt() { | ||||
| local lec="$?" | local lec="$?" | ||||
| if [ $FORCE_COLOR_PROMPT = yes ]; then | |||||
| if [ $COLOR_PROMPT = yes ]; then | |||||
| if [ $lec -ne 0 ]; then | if [ $lec -ne 0 ]; then | ||||
| smilie="${RED}:(${NORMAL}" | smilie="${RED}:(${NORMAL}" | ||||
| else | else | ||||
| smilie="${GREEN}:)${NORMAL}" | smilie="${GREEN}:)${NORMAL}" | ||||
| fi | 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 | else | ||||
| PS1="${debian_chroot:+($debian_chroot)}\u@\h:\w\$ " | PS1="${debian_chroot:+($debian_chroot)}\u@\h:\w\$ " | ||||
| fi | fi | ||||
| } | } | ||||
| PROMPT_COMMAND="set_prompt" | |||||
| PROMPT_COMMAND="set_prompt" |