increased yell level to 3.0

This commit is contained in:
Martinez 2016-10-12 10:30:40 +02:00
parent 3967dafd93
commit 5a26ec7c7f
2 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,7 @@
#OVER_PROMPT_SYSLOAD_WARN=1.25
# Indicators of system load will turn red when system load (loadavg divided by nproc) exceeds this value.
#OVER_PROMPT_SYSLOAD_YELL=2.50
#OVER_PROMPT_SYSLOAD_YELL=3.0
# Indicators of free space (storage, memory and swap) will turn yellow when there's at most this fraction of free space left.
#OVER_PROMPT_FREESPACE_WARN=0.15

View file

@ -21,7 +21,7 @@ function preexec {
function precmd {
set_title "${USER}: ${PWD}"
python3 /usr/libexec/over-prompt.py "${COLUMNS}" "${PWD}" "${OVER_PROMPT_LAST_REFRESH}" "${OVER_PROMPT_SYSLOAD_WARN:=1.25}" "${OVER_PROMPT_SYSLOAD_YELL:=2.5}" "${OVER_PROMPT_FREESPACE_WARN:=0.15}" "${OVER_PROMPT_FREESPACE_YELL:=0.05}"
python3 /usr/libexec/over-prompt.py "${COLUMNS}" "${PWD}" "${OVER_PROMPT_LAST_REFRESH}" "${OVER_PROMPT_SYSLOAD_WARN:=1.25}" "${OVER_PROMPT_SYSLOAD_YELL:=3.0}" "${OVER_PROMPT_FREESPACE_WARN:=0.15}" "${OVER_PROMPT_FREESPACE_YELL:=0.05}"
PS1="$(print "%(?.%{\e[1;36m%}.%{\e[1;31m%}%?%{\e[0m%}:%{\e[1;31m%})%(\!.#.$)%{\e[0m%} ")"
OVER_PROMPT_LAST_REFRESH=$(date +%s)
}