blob: 27512bd673aa755e3ef1735d4bae3d73fda32b58 (
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=SC1117,SC2034,SC2154
unset default
# Import colors
_colors_bash "$@"
PROMPT_COMMAND='
last_status=$?
ps1_status="$(exitstatus "$last_status")"
ps1_git="$(__prompt_git)"
'
default=("\n\
\[$RESET\]\
\[${BOLD}${YELLOW}\][ \u \
\[${BOLD}${BLUE}\]| \D{%Y-%m-%d} |\
\[${BOLD}${RED}\] \D{%I:%M%p} ]\n\
\[$RESET\]\
\[${BOLD}${WHITE}\][\$PWD]\[$RESET\] \
\${ps1_status}\[$RESET\]\
\${ps1_git}\
\n\[${BOLD}${GREEN}\]$SYMBOL \[$RESET\]")
unset _psi
: "${_psi:=\[${BOLD}${CYAN}\]=>\[$RESET\] }"
|