This commit is contained in:
Eduard Tolosa 2021-01-20 11:09:18 -05:00
parent a017116ce9
commit 5cc01c7969

View file

@ -60,13 +60,17 @@ fi
# colors # colors
darkgrey="$(tput bold ; tput setaf 0)" darkgrey="$(tput bold ; tput setaf 0)"
white="$(tput bold ; tput setaf 7)" red="$(tput bold; tput setaf 1)"
green="$(tput bold; tput setaf 2)"
yellow="$(tput bold; tput setaf 3)"
blue="$(tput bold; tput setaf 4)" blue="$(tput bold; tput setaf 4)"
magenta="$(tput bold; tput setaf 5)"
cyan="$(tput bold; tput setaf 6)" cyan="$(tput bold; tput setaf 6)"
white="$(tput bold ; tput setaf 7)"
nc="$(tput sgr0)" nc="$(tput sgr0)"
if [ "$color_prompt" = yes ]; then if [ "$color_prompt" = yes ]; then
PS1='\[$blue\][ \[$cyan\]\H \[$darkgrey\]\w\[$darkgrey\] \[$blue\]]\[$blue\]$(__git_ps1)\n└─▶\[$nc\] ' PS1='\[$red\]┌─$([[ $? != 0 ]] && echo "\[$magenta\][✗]\[$red\]─")\[$red\][ \[$blue\]\H \[$cyan\]\w\[$darkgrey\]\[$yellow\]$(__git_ps1)\[$red\] ]\n\[$red\]└──╼ \[$green\]$([[ $EUID == "0" ]] && echo "#" || echo "$")\[$nc\] '
else else
PS1='\u@\h:\w\$ ' PS1='\u@\h:\w\$ '
fi fi