From 31ecdc7585c81902830dc46fee85841847482e92 Mon Sep 17 00:00:00 2001 From: Emile Date: Fri, 5 Apr 2024 18:39:27 +0200 Subject: zsh rpromt time to 5 seconds Selection and menus got funky when resetting every second. This won't fix the issue, but make it bearable. --- nix/hosts/caladan/session_variables.zsh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'nix/hosts/caladan/session_variables.zsh') diff --git a/nix/hosts/caladan/session_variables.zsh b/nix/hosts/caladan/session_variables.zsh index d2f5d7c..b57988d 100644 --- a/nix/hosts/caladan/session_variables.zsh +++ b/nix/hosts/caladan/session_variables.zsh @@ -6,10 +6,13 @@ export PROMPT="; " # minimal prompt #export RPROMPT="%F{green}%/%F{reset}" export RPROMPT="%F{green}%/%F{reset} %D{%K:%M:%S}" -# reset the prompt every second, so we get the time the command was executed +# reset the prompt, so we get the time the command was executed # in the rprompt -TMOUT=1 -TRAPALRM() { zle reset-prompt } +TMOUT=5 +TRAPALRM() { + zle reset-prompt +} + export VI_MODE_SET_CURSOR=true export PROMPT_EOL_MARK="%" # hide EOL sign ('%') @@ -45,3 +48,4 @@ fi if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' fi + -- cgit 1.4.1