2
0
Fork 0

/etc/skel/.bashrc: fix color issues

main
Ducky 2022-01-25 10:20:46 +00:00
parent 7a022412d0
commit 379555e1c3
1 changed files with 3 additions and 3 deletions

View File

@ -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!)