From 455048f6f339e4f0a21602ff8a2f56d61de989a7 Mon Sep 17 00:00:00 2001 From: aszlig Date: Fri, 8 May 2020 06:50:13 +0200 Subject: zsh: Fix XTerm-specific shell initialisation In 7faaaab0af1e30bdfb72eca02abdfe92efefe4e0, I've changed the TERM variable to contain "xterm-256color". However, in our shell initialisation, we check whether $TERM is "xterm" rather than whether $TERM *starts* with xterm. Doing the latter fixes title setting and home/end keys in Vi normal mode. Signed-off-by: aszlig --- modules/user/aszlig/programs/zsh/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/user/aszlig/programs/zsh/default.nix b/modules/user/aszlig/programs/zsh/default.nix index a97e000a..178fe09a 100644 --- a/modules/user/aszlig/programs/zsh/default.nix +++ b/modules/user/aszlig/programs/zsh/default.nix @@ -63,7 +63,7 @@ in { export KEYTIMEOUT=1 bindkey -v - if [[ "$TERM" = xterm ]]; then + if [[ "$TERM" = xterm* ]]; then bindkey -v '\e[H' vi-beginning-of-line bindkey -v '\e[F' vi-end-of-line -- cgit 1.4.1