From edeaa7de398f412b9d4e98d96311e0f78c5a1d0c Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Mon, 18 Oct 2021 14:55:35 +0200 Subject: [PATCH] Show online hours and minutes, refresh every 30 s --- zsh/ohmyzsh/themes/laptop.zsh-theme | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zsh/ohmyzsh/themes/laptop.zsh-theme b/zsh/ohmyzsh/themes/laptop.zsh-theme index 8db641e..1179cdb 100644 --- a/zsh/ohmyzsh/themes/laptop.zsh-theme +++ b/zsh/ohmyzsh/themes/laptop.zsh-theme @@ -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 }