diff --git a/dotfiles/install/install-global-ps1.sh b/dotfiles/install/install-global-ps1.sh index 4a1b7f9..e4dc1b2 100644 --- a/dotfiles/install/install-global-ps1.sh +++ b/dotfiles/install/install-global-ps1.sh @@ -107,8 +107,6 @@ _ps1_update() { # Public functions # ------------------------------------------------- ps1_on() { - PROMPT_COMMAND="_ps1_update" - local RST="\[\e[0m\]" # Zone 1 (date/time/user): gray-blue pastel @@ -126,21 +124,19 @@ ps1_on() { # Status colors local OK="\[\e[38;5;76m\]" local BAD="\[\e[38;5;203m\]" - local BOLD="\[\e[1m\]" - local NOBOLD="\[\e[22m\]" - # Separators w/ fallback (NF vs non-NF) - local SEP_EXPR='\$( [ "$__PS1_USE_NF" -eq 1 ] && printf "" || printf "▶" )' - local LEFT_EXPR='\$( [ "$__PS1_USE_NF" -eq 1 ] && printf "" || printf "[" )' - local RIGHT_EXPR='\$( [ "$__PS1_USE_NF" -eq 1 ] && printf "" || printf "]" )' - - local PROMPT_SYM="\$( [ \$__PS1_STATUS -eq 0 ] && printf '${OK}' || printf '${BAD}' )${BOLD}➜${NOBOLD}${RST}" + # Separators (NF) + local LEFT="" + local SEP="" + local RIGHT="" PS1="\ ${FRAME}╭─${RST}\ -${Z1_BG}${Z1_FG}${LEFT_EXPR} \d \A \u ${RST}${Z1_BG}${Z2_BG}${Z2_FG}${SEP_EXPR}${RST}\ -${Z2_BG}${Z2_FG} @\h ${PATH_FG}\${__PS1_PATH}${RST}${Z2_BG}${Z2_FG}${RIGHT_EXPR}${RST}\ -\n${FRAME}╰── ${RST}${PROMPT_SYM} \${__PS1_SYM} " +${Z1_BG}${Z1_FG}${LEFT} \d \A \u ${RST}\ +${Z1_BG}${Z2_BG}${Z2_FG}${SEP}${RST}\ +${Z2_BG}${Z2_FG} @\h ${PATH_FG}\w ${RST}${Z2_BG}${Z2_FG}${RIGHT}${RST}\ +\n${FRAME}╰── ${RST}\ +\$( [ \$? -eq 0 ] && printf '${OK}' || printf '${BAD}' )➜${RST} 🌙 " } ps1_off() {