/etc/skel/.bashrc: fix color issues
parent
7a022412d0
commit
379555e1c3
|
@ -26,7 +26,7 @@ function color() {
|
||||||
[[ -z $style ]] && style="0"
|
[[ -z $style ]] && style="0"
|
||||||
|
|
||||||
if [[ -z $code ]]; then
|
if [[ -z $code ]]; then
|
||||||
echo "\033[00m"
|
echo "\033[0m"
|
||||||
else
|
else
|
||||||
echo "\033[0${style};${code}m"
|
echo "\033[0${style};${code}m"
|
||||||
fi
|
fi
|
||||||
|
@ -89,9 +89,9 @@ fi
|
||||||
|
|
||||||
# Sexy prompt
|
# Sexy prompt
|
||||||
if [ "$color_prompt" = yes ]; then
|
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
|
else
|
||||||
PS1="\h:\W >"
|
PS1="\h:\W > "
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Source aliases (instead of editing your ~/.bashrc!)
|
# Source aliases (instead of editing your ~/.bashrc!)
|
||||||
|
|
Loading…
Reference in New Issue