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

unset minterm

# 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)")"
'

minterm="\n\
\[${BOLD}${CYAN}\]┌─\
\[${BOLD}${YELLOW}\]\u\
\[${BOLD}${CYAN}\]@\
\[${BOLD}${GREY}\]\h\[$RESET\] \
\${ps1_status}\[$RESET\] \
\[${BOLD}${WHITE}\][\$PWD]\
\${ps1_git}\n\
\[${BOLD}${CYAN}\]╰─➤\[$RESET\] \
\${ps1_time}\[$RESET\] \
\[${BOLD}${GREEN}\]$SYMBOL \[$RESET\]"

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