From 0a58526fd73d471db438025096a7ce878e144571 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Tue, 17 Aug 2021 16:26:59 -0500 Subject: Add -> simple new theme --- hyperterm/_custom.sh | 2 ++ hyperterm/themes/simple.sh | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 hyperterm/themes/simple.sh (limited to 'hyperterm') 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\] }" -- cgit v1.2.3