aboutsummaryrefslogtreecommitdiffstats
path: root/hyperterm/themes/simple.sh
blob: e4902c2e1530f713c0dee10946bf5d7791304540 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
# shellcheck disable=SC2034,SC2154

unset simple

# Import colors
_colors_bash "$@"

__time_out_command() {
    awk '{ print $1 }' /proc/loadavg
}

PROMPT_COMMAND='
  last_status=$?
  ps1_status="$(exitstatus "$last_status")"
  ps1_load="$(__time_out_command)"
  ps1_git="$(__prompt_git)"
'

simple="\n\
\[${RESET}\]\
\[${BOLD}${GREY}\]\
\${ps1_status}\[$RESET\] \
\[${BOLD}${GREY}\]\
\${ps1_load}\[$RESET\] \
\[${BOLD}${WHITE}\]\W\[$RESET\]\
\${ps1_git}\n\
\[${BOLD}${GREEN}\]$SYMBOL \[$RESET\]"

unset _psi
: "${_psi:=\[${BOLD}${CYAN}\]=>\[$RESET\] }"