diff options
author | Emile <git@emile.space> | 2024-04-05 18:39:27 +0200 |
---|---|---|
committer | Emile <git@emile.space> | 2024-04-05 18:39:27 +0200 |
commit | 31ecdc7585c81902830dc46fee85841847482e92 (patch) | |
tree | b0e673cf89b8edab47b399986f5db0f3d7da07a5 /nix | |
parent | 37a4d293a518829988517ea80b4466379bb2b753 (diff) |
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.
Diffstat (limited to 'nix')
-rw-r--r-- | nix/hosts/caladan/session_variables.zsh | 10 |
1 files changed, 7 insertions, 3 deletions
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 + |