zsh: Add binding for editing the current command

This commit is contained in:
Simon Bruder 2021-08-21 22:32:58 +02:00
parent 64a682a836
commit 9aa7d4411f
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -109,6 +109,11 @@ in
# do not glob # (conflicts with nix flakes) # do not glob # (conflicts with nix flakes)
disable -p '#' 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 # syntax highlighting
source ${pkgs.zsh-fast-syntax-highlighting}/share/zsh/site-functions/fast-syntax-highlighting.plugin.zsh source ${pkgs.zsh-fast-syntax-highlighting}/share/zsh/site-functions/fast-syntax-highlighting.plugin.zsh
FAST_HIGHLIGHT_STYLES[comment]=fg=010 FAST_HIGHLIGHT_STYLES[comment]=fg=010