From b08d54abb62df25a67f7ef621d24a8f8b49e35a1 Mon Sep 17 00:00:00 2001 From: jasmine Date: Sun, 28 Jul 2024 10:15:16 +0800 Subject: [PATCH] Ctrl-Left/Right triggers forward/backwards-word --- home-manager/sajenim/features/cli/zsh.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/home-manager/sajenim/features/cli/zsh.nix b/home-manager/sajenim/features/cli/zsh.nix index 9cc49db..876c788 100644 --- a/home-manager/sajenim/features/cli/zsh.nix +++ b/home-manager/sajenim/features/cli/zsh.nix @@ -59,6 +59,8 @@ eval "$(direnv hook zsh)" source ${pkgs.zsh-vi-mode}/share/zsh-vi-mode/zsh-vi-mode.plugin.zsh path+=('/home/sajenim/.local/bin') + bindkey "^[[1;5C" forward-word + bindkey "^[[1;5D" backward-word export PATH PROMPT='%F{blue}%n@%m %F{cyan}%~ %F{red}♥ %f'; '';