aboutsummaryrefslogtreecommitdiffstats
path: root/hyperterm/themes/joy.sh
blob: 54e29f676da0fdff1123fc3a162988662420edbb (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
32
33
34
35
36
#!/bin/bash
# shellcheck disable=SC2034,SC2154

unset joy

# Import colors
_colors_bash "$@"

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

joy="\n\
\[${BOLD}${CYAN}\]\342\224\214\342\224\200[\
\[${BOLD}${YELLOW}\]\u\
\[${BOLD}${CYAN}\]@\
\[${BOLD}${GREY}\]\h\
\[${BOLD}${CYAN}\]]\
\342\224\200[\
\[${RESET}\]\w\
\[${BOLD}${CYAN}\]]\
\342\224\200\
\${ps1_status}\
\[${BOLD}${CYAN}\]\
\342\224\200\
\${ps1_git}\
\[${BOLD}${CYAN}\]\342\224\200[\
\[${RESET}\]\t\
\[${BOLD}${CYAN}\]]\n\
\[${BOLD}${CYAN}\]\342\224\224\342\224\200\342\224\200\342\225\274\
\[${BOLD}${GREEN}\] $SYMBOL \[$RESET\]"

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