blob: 24843e874b379563425fb05d024072bdd8a1a55d (
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
unset default
# Import colors
_colors_bash "$@"
default=("\n\
\[$RESET\]\
\[${BOLD}${YELLOW}\][ \u \
\[${BOLD}${BLUE}\]| \D{%Y-%m-%d} |\
\[${BOLD}${RED}\] \D{%I:%M%p} ]\n\
\[$RESET\]\
\[${BOLD}${WHITE}\][\$PWD]\[$RESET\] \
\$(exitstatus)\[$RESET\]\
\$( _prompt_is_on_git &> /dev/null && \
echo -n \" \[${BOLD}${WHITE}\]on\[$RESET\] \" && \
echo -n \"\$(_prompt_get_git_info)\" && \
echo -n \"\[${BOLD}${RED}\]\$(_get_git_progress)\" && \
echo -n \"\[$RESET\]\")\
\n\[${BOLD}${GREEN}\]$SYMBOL \[$RESET\]")
export default
unset _psi
: "${_psi:=\[${BOLD}${CYAN}\]=>\[$RESET\] }"
|