From 9aa7d4411fb098dff25b1ab3b60d9ea3c8751e18 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 21 Aug 2021 22:32:58 +0200 Subject: [PATCH] zsh: Add binding for editing the current command --- users/simon/modules/zsh/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/users/simon/modules/zsh/default.nix b/users/simon/modules/zsh/default.nix index 50bc92a..16365d3 100644 --- a/users/simon/modules/zsh/default.nix +++ b/users/simon/modules/zsh/default.nix @@ -109,6 +109,11 @@ in # do not glob # (conflicts with nix flakes) disable -p '#' + # ^X^E to edit current command + autoload -z edit-command-line + zle -N edit-command-line + bindkey "^X^E" edit-command-line + # syntax highlighting source ${pkgs.zsh-fast-syntax-highlighting}/share/zsh/site-functions/fast-syntax-highlighting.plugin.zsh FAST_HIGHLIGHT_STYLES[comment]=fg=010