aboutsummaryrefslogtreecommitdiffstats
path: root/hyperterm/themes/pure.sh
blob: ab8f1b4af3ce45cbcdaf7255d6ecc59cf37f33bf (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
#!/bin/bash
# shellcheck disable=SC2034,SC2154

unset pure

# Import colors
_colors_bash "$@"

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\] \
\${ps1_status}\[$RESET\] \
\${ps1_time}\
\${ps1_git}\
\n\[${BOLD}${CYAN}\]$SYMBOL \[$RESET\]"

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