/etc/skel/.bashrc: fix color issues
parent
7a022412d0
commit
379555e1c3
|
@ -26,7 +26,7 @@ function color() {
|
|||
[[ -z $style ]] && style="0"
|
||||
|
||||
if [[ -z $code ]]; then
|
||||
echo "\033[00m"
|
||||
echo "\033[0m"
|
||||
else
|
||||
echo "\033[0${style};${code}m"
|
||||
fi
|
||||
|
@ -89,7 +89,7 @@ fi
|
|||
|
||||
# Sexy prompt
|
||||
if [ "$color_prompt" = yes ]; then
|
||||
PS1="\[$(color 32 1)\]\h$(color 37):$(color 32 1)\W$(color 37) $(color $(get_caret_color))➜ $(color) "
|
||||
PS1="\[$(color 32 1)\]\h\[$(color 37)\]:\[$(color 32 1)\]\W\[$(color 37)\] \[$(color $(get_caret_color))\]➜ \[$(color)\] "
|
||||
else
|
||||
PS1="\h:\W > "
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue