diff options
Diffstat (limited to 'hyperterm/themes/pure.sh')
-rw-r--r-- | hyperterm/themes/pure.sh | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/hyperterm/themes/pure.sh b/hyperterm/themes/pure.sh index 62958de..ab8f1b4 100644 --- a/hyperterm/themes/pure.sh +++ b/hyperterm/themes/pure.sh @@ -1,19 +1,27 @@ #!/bin/bash +# shellcheck disable=SC2034,SC2154 unset pure # Import colors _colors_bash "$@" -: "${pure:=\ +PROMPT_COMMAND=' + last_status=$? + ps1_status="$(exitstatus "$last_status")" + ps1_git="$(__prompt_git)" + ps1_time="$(printf "%b%s" "${BOLD}${GREY}" "$(date +%H:%M)")" +' + +pure="\ \[${BOLD}${GREEN}\]\u\[$RESET\] \ \[${BOLD}${YELLOW}\][\ \[${BOLD}${RED}\]\w\ \[${BOLD}${YELLOW}\]]\[$RESET\] \ -\$(exitstatus)\[$RESET\] \ -\[${BOLD}${BLUE}\](\$(date +%H:%M:%S))\ -\$(__prompt_git)\ -\n\[${BOLD}${CYAN}\]$SYMBOL \[$RESET\]}" +\${ps1_status}\[$RESET\] \ +\${ps1_time}\ +\${ps1_git}\ +\n\[${BOLD}${CYAN}\]$SYMBOL \[$RESET\]" unset _psi : "${_psi:=\[${BOLD}${CYAN}\]=>\[$RESET\] }" |