blob: 382057321a24c6f7059418223659db9b7acdf191 (
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
37
38
39
|
#!/bin/bash
# shellcheck disable=SC1117
unset special
# Import colors
_colors_bash "$@"
_prompt_local_name() {
case ${LANG/_*/} in
es)
printf "Ubicación Actual:"
;;
*)
printf "Current Location:"
;;
esac
}
special=("\n\
\[$RESET\]\
\[${BOLD}${YELLOW}\][$(_prompt_local_name)\
\[$RESET\] \[${BOLD}${GREY}\]\w\
\[${BOLD}${YELLOW}\]]\[$RESET\] \
\[${BOLD}${CYAN}\]hist:\!\[$RESET\]\n\
\[${BOLD}${GREY}\]\
\D{%Y-%m-%d}@\D{%I:%M%p}\[$RESET\] \
\$(exitstatus)\[$_PROMPT_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 special
unset _psi
: "${_psi:=\[${BOLD}${CYAN}\]=>\[$RESET\] }"
|