From eb3eea721d203627a61937933217c69abb46a775 Mon Sep 17 00:00:00 2001 From: Mohammad Rafiq Date: Wed, 21 May 2025 12:29:53 +0800 Subject: [PATCH] feat(zsh): add a simple timer to zle to test tmout --- modules/home/cli/shell/default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/modules/home/cli/shell/default.nix b/modules/home/cli/shell/default.nix index a132607..bed3255 100644 --- a/modules/home/cli/shell/default.nix +++ b/modules/home/cli/shell/default.nix @@ -10,6 +10,18 @@ history.size = 10000; history.ignoreDups = true; history.ignoreSpace = true; + initContent = + lib.mkOrder 1200 + # zsh + '' + RPROMPT='[%D{%L:%M:%S %p}]' + + TMOUT=1 + + TRAPALRM() { + zle reset-prompt + } + ''; }; }; }