about summary refs log tree commit diff
diff options
context:
space:
mode:
authoraszlig <aszlig@nix.build>2020-02-10 06:06:56 +0100
committeraszlig <aszlig@nix.build>2020-02-10 06:18:54 +0100
commita37b8a4693518323b5fcd471fceecf32b6320534 (patch)
treeb80023216f660032fb8595a2cd02f2aa2ef12dbf
parent8b4216b8960d13d81df5774e3acaf485e29283d9 (diff)
programs/zsh: Set key timeout to 0.01 seconds
Since I'm using Vi keybindings, pressing the Escape key is something I
do rather frequently. Having to wait for roughly a second after that
gets pretty annoying after a while, so let's set the timeout to 0.01
seconds.

This should usually be "small enough" to not interfere with other key
sequences resulting in escape characters, but let's see how this will
play out after a while.

Signed-off-by: aszlig <aszlig@nix.build>
-rw-r--r--modules/user/aszlig/programs/zsh/default.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/user/aszlig/programs/zsh/default.nix b/modules/user/aszlig/programs/zsh/default.nix
index e66be125..a97e000a 100644
--- a/modules/user/aszlig/programs/zsh/default.nix
+++ b/modules/user/aszlig/programs/zsh/default.nix
@@ -60,6 +60,7 @@ in {
       export HISTFILE=~/.histfile
       export HISTSIZE=100000
       export SAVEHIST=100000
+      export KEYTIMEOUT=1
 
       bindkey -v
       if [[ "$TERM" = xterm ]]; then