diff --git a/modules/zsh.nix b/modules/zsh.nix index 6cd4186..7a51f6d 100644 --- a/modules/zsh.nix +++ b/modules/zsh.nix @@ -21,6 +21,10 @@ promptInit = '' source ${pkgs.zsh-autocomplete}/share/zsh-autocomplete/zsh-autocomplete.plugin.zsh source ${pkgs.zsh-powerlevel10k}/share/zsh-powerlevel10k/powerlevel10k.zsh-theme + + # Make ← and → move the cursor on the command line, even when in the menu + bindkey -M menuselect '^[[D' .backward-char '^[OD' .backward-char + bindkey -M menuselect '^[[C' .forward-char '^[OC' .forward-char ''; };