aboutsummaryrefslogtreecommitdiffstats
path: root/hyperterm/themes/joy.sh
diff options
context:
space:
mode:
authorAstound <kirito@disroot.org>2025-08-13 10:12:57 -0500
committerAstound <kirito@disroot.org>2025-08-13 10:12:57 -0500
commit20decfa42ab906e49b3f083ec7d5fb2910315c5d (patch)
tree4f83316438841be4d5104851fc49a0a9e217485a /hyperterm/themes/joy.sh
parenta3c3eb4ea04906308349ab11d7fcd39a6674ca3c (diff)
downloadhyperterm-20decfa42ab906e49b3f083ec7d5fb2910315c5d.tar.lz
hyperterm-20decfa42ab906e49b3f083ec7d5fb2910315c5d.tar.xz
hyperterm-20decfa42ab906e49b3f083ec7d5fb2910315c5d.zip
update themesHEADmaster
Diffstat (limited to 'hyperterm/themes/joy.sh')
-rw-r--r--hyperterm/themes/joy.sh15
1 files changed, 11 insertions, 4 deletions
diff --git a/hyperterm/themes/joy.sh b/hyperterm/themes/joy.sh
index 0f5e8ee..54e29f6 100644
--- a/hyperterm/themes/joy.sh
+++ b/hyperterm/themes/joy.sh
@@ -1,11 +1,18 @@
#!/bin/bash
+# shellcheck disable=SC2034,SC2154
unset joy
# Import colors
_colors_bash "$@"
-: "${joy:=\n\
+PROMPT_COMMAND='
+ last_status=$?
+ ps1_status="$(exitstatus "$last_status")"
+ ps1_git="$(__prompt_git)"
+'
+
+joy="\n\
\[${BOLD}${CYAN}\]\342\224\214\342\224\200[\
\[${BOLD}${YELLOW}\]\u\
\[${BOLD}${CYAN}\]@\
@@ -15,15 +22,15 @@ _colors_bash "$@"
\[${RESET}\]\w\
\[${BOLD}${CYAN}\]]\
\342\224\200\
-\$(exitstatus)\
+\${ps1_status}\
\[${BOLD}${CYAN}\]\
\342\224\200\
-\$(__prompt_git)\
+\${ps1_git}\
\[${BOLD}${CYAN}\]\342\224\200[\
\[${RESET}\]\t\
\[${BOLD}${CYAN}\]]\n\
\[${BOLD}${CYAN}\]\342\224\224\342\224\200\342\224\200\342\225\274\
-\[${BOLD}${GREEN}\] $SYMBOL \[$RESET\]}"
+\[${BOLD}${GREEN}\] $SYMBOL \[$RESET\]"
unset _psi
: "${_psi:=\[${BOLD}${CYAN}\]=>\[$RESET\] }"