30 lines
511 B
Bash
30 lines
511 B
Bash
#!/bin/bash
|
|
|
|
unset simple
|
|
|
|
# Import colors
|
|
_colors_bash "$@"
|
|
|
|
__time_out_command() {
|
|
awk '{ print $1 }' /proc/loadavg
|
|
}
|
|
|
|
PROMPT_COMMAND='
|
|
ps1_status="$(exitstatus)"
|
|
ps1_load="$(__time_out_command)"
|
|
ps1_git="$(__prompt_git)"
|
|
'
|
|
|
|
: "${simple:=\n\
|
|
\[${RESET}\]\
|
|
\[${BOLD}${GREY}\]\
|
|
\${ps1_status}\[$RESET\] \
|
|
\[${BOLD}${GREY}\]\
|
|
\${ps1_load}\[$RESET\] \
|
|
\[${BOLD}${WHITE}\]\W\[$RESET\]\
|
|
\${ps1_git}\n\
|
|
\[${BOLD}${GREEN}\]$SYMBOL \[$RESET\]}"
|
|
|
|
unset _psi
|
|
: "${_psi:=\[${BOLD}${CYAN}\]=>\[$RESET\] }"
|