Show online hours and minutes, refresh every 30 s

This commit is contained in:
Thomas Forgione 2021-10-18 14:55:35 +02:00
parent 509ed9956f
commit 409fb9bb4b
1 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ local PR_TEMP=""
command -v vcgencmd > /dev/null && PR_TEMP=' ${PR_GREEN}$(vcgencmd measure_temp | cut -d = -f 2)${PR_NO_COLOR}'
local PR_DATE='${PR_BOLD}${PR_MAGENTA}[%D{%H:%M:%S}]${PR_NO_COLOR}'
local PR_DATE='${PR_BOLD}${PR_MAGENTA}[%D{%H:%M}]${PR_NO_COLOR}'
#PROMPT="${user_host} ${current_dir} ${rvm_ruby}${git_branch}$PR_PROMPT "
separator='${PR_YELLOW}::${PR_NO_COLOR}'
@ -101,7 +101,7 @@ RPS1=" ${return_code}"
ZSH_THEME_GIT_PROMPT_PREFIX="%{$PR_YELLOW%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$PR_NO_COLOR%}"
TMOUT=1
TMOUT=30
TRAPALRM() {
zle reset-prompt
}