diff options
author | Astound <kirito@disroot.org> | 2025-08-13 10:12:57 -0500 |
---|---|---|
committer | Astound <kirito@disroot.org> | 2025-08-13 10:12:57 -0500 |
commit | 20decfa42ab906e49b3f083ec7d5fb2910315c5d (patch) | |
tree | 4f83316438841be4d5104851fc49a0a9e217485a /hyperterm/themes/simple.sh | |
parent | a3c3eb4ea04906308349ab11d7fcd39a6674ca3c (diff) | |
download | hyperterm-20decfa42ab906e49b3f083ec7d5fb2910315c5d.tar.lz hyperterm-20decfa42ab906e49b3f083ec7d5fb2910315c5d.tar.xz hyperterm-20decfa42ab906e49b3f083ec7d5fb2910315c5d.zip |
Diffstat (limited to 'hyperterm/themes/simple.sh')
-rw-r--r-- | hyperterm/themes/simple.sh | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/hyperterm/themes/simple.sh b/hyperterm/themes/simple.sh index afba275..e4902c2 100644 --- a/hyperterm/themes/simple.sh +++ b/hyperterm/themes/simple.sh @@ -1,4 +1,5 @@ #!/bin/bash +# shellcheck disable=SC2034,SC2154 unset simple @@ -9,15 +10,22 @@ __time_out_command() { awk '{ print $1 }' /proc/loadavg } -: "${simple:=\n\ +PROMPT_COMMAND=' + last_status=$? + ps1_status="$(exitstatus "$last_status")" + ps1_load="$(__time_out_command)" + ps1_git="$(__prompt_git)" +' + +simple="\n\ \[${RESET}\]\ \[${BOLD}${GREY}\]\ -\$(exitstatus)\[$RESET\] \ +\${ps1_status}\[$RESET\] \ \[${BOLD}${GREY}\]\ -\$(__time_out_command)\[$RESET\] \ +\${ps1_load}\[$RESET\] \ \[${BOLD}${WHITE}\]\W\[$RESET\]\ -\$(__prompt_git)\n\ -\[${BOLD}${GREEN}\]$SYMBOL \[$RESET\]}" +\${ps1_git}\n\ +\[${BOLD}${GREEN}\]$SYMBOL \[$RESET\]" unset _psi : "${_psi:=\[${BOLD}${CYAN}\]=>\[$RESET\] }" |