zsh: Add binding for editing the current command

upower
Simon Bruder 2021-08-21 22:32:58 +02:00
parent 64a682a836
commit 9aa7d4411f
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
1 changed files with 5 additions and 0 deletions

View File

@ -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