diff options
author | Jesús <heckyel@hyperbola.info> | 2021-08-17 16:26:59 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-08-17 16:26:59 -0500 |
commit | 0a58526fd73d471db438025096a7ce878e144571 (patch) | |
tree | 6fc1e902972a967d6f0ac295aa0a0db14860651f /hyperterm | |
parent | baefc5c6f9e65806452aa7258825b1852959c1f5 (diff) | |
download | hyperterm-0a58526fd73d471db438025096a7ce878e144571.tar.lz hyperterm-0a58526fd73d471db438025096a7ce878e144571.tar.xz hyperterm-0a58526fd73d471db438025096a7ce878e144571.zip |
Add -> simple new theme
Diffstat (limited to 'hyperterm')
-rw-r--r-- | hyperterm/_custom.sh | 2 | ||||
-rw-r--r-- | hyperterm/themes/simple.sh | 21 |
2 files changed, 23 insertions, 0 deletions
diff --git a/hyperterm/_custom.sh b/hyperterm/_custom.sh index 124106c..9c54abe 100644 --- a/hyperterm/_custom.sh +++ b/hyperterm/_custom.sh @@ -14,6 +14,7 @@ if [[ -f $HOME/.hyperterm/themes/joy.sh ]]; then source "$HOME/.hyperterm/themes if [[ -f $HOME/.hyperterm/themes/light_theme.sh ]]; then source "$HOME/.hyperterm/themes/light_theme.sh"; else true; fi if [[ -f $HOME/.hyperterm/themes/minterm.sh ]]; then source "$HOME/.hyperterm/themes/minterm.sh"; else true; fi if [[ -f $HOME/.hyperterm/themes/pure.sh ]]; then source "$HOME/.hyperterm/themes/pure.sh"; else true; fi +if [[ -f $HOME/.hyperterm/themes/simple.sh ]]; then source "$HOME/.hyperterm/themes/simple.sh"; else true; fi if [[ -f $HOME/.hyperterm/themes/special.sh ]]; then source "$HOME/.hyperterm/themes/special.sh"; else true; fi #--------------- @@ -25,6 +26,7 @@ prompt="${default}" #prompt="${light_theme}" #prompt="${minterm}" #prompt="${pure}" +#prompt="${simple}" #prompt="${special}" #--------------- diff --git a/hyperterm/themes/simple.sh b/hyperterm/themes/simple.sh new file mode 100644 index 0000000..d2f2129 --- /dev/null +++ b/hyperterm/themes/simple.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +unset simple + +# Import colors +_colors_bash "$@" + +__time_out_command() { + cut -d\ -f1 /proc/loadavg +} + +: "${simple:=\n\ +\[${RESET}\]\ +\[${BOLD}${GREY}\]\ +\$(__time_out_command) \ +\$(exitstatus)\ +\$(__prompt_git)\ +\[${BOLD}${GREEN}\] $SYMBOL \[$RESET\]}" + +unset _psi +: "${_psi:=\[${BOLD}${CYAN}\]=>\[$RESET\] }" |