zsh: Add binding for editing the current command
This commit is contained in:
parent
64a682a836
commit
9aa7d4411f
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue