aboutsummaryrefslogtreecommitdiffstats
path: root/hyperterm/themes/light_theme.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hyperterm/themes/light_theme.sh')
-rw-r--r--hyperterm/themes/light_theme.sh15
1 files changed, 11 insertions, 4 deletions
diff --git a/hyperterm/themes/light_theme.sh b/hyperterm/themes/light_theme.sh
index c269aaa..5fadaa0 100644
--- a/hyperterm/themes/light_theme.sh
+++ b/hyperterm/themes/light_theme.sh
@@ -1,20 +1,27 @@
#!/bin/bash
+# shellcheck disable=SC2034,SC2154
unset light_theme
# Import colors
_colors_bash "$@"
-: "${light_theme:=\n\
+PROMPT_COMMAND='
+ last_status=$?
+ ps1_status="$(exitstatus "$last_status")"
+ ps1_git="$(__prompt_git)"
+'
+
+light_theme="\n\
\[$RESET\]\
\[${BOLD}${CYAN}\]┌─\[$RESET\]\
\[${BOLD}${YELLOW}\]\u\[$RESET\]\
\[${BOLD}${CYAN}\]@\[$RESET\]\
\[${BOLD}${GREY}\]\h\[$RESET\] \
-\$(exitstatus)\[$RESET\] \
+\${ps1_status}\[$RESET\] \
\[${BOLD}${WHITE}\][\$PWD]\
-\$(__prompt_git)\
-\n\[${BOLD}${CYAN}\]╰─➤\[${BOLD}${GREEN}\]$SYMBOL \[$RESET\]}"
+\${ps1_git}\
+\n\[${BOLD}${CYAN}\]╰─➤\[${BOLD}${GREEN}\]$SYMBOL \[$RESET\]"
unset _psi
: "${_psi:=\[${BOLD}${CYAN}\]=>\[$RESET\] }"