zsh: add shortcut to edit the command line in $VISUAL
This commit is contained in:
parent
935909bb70
commit
75bb034d48
1 changed files with 5 additions and 0 deletions
5
.zshrc
5
.zshrc
|
@ -12,6 +12,11 @@ autoload -Uz compinit
|
||||||
compinit
|
compinit
|
||||||
# End of lines added by compinstall
|
# End of lines added by compinstall
|
||||||
|
|
||||||
|
# Edit the command in editor
|
||||||
|
autoload -z edit-command-line
|
||||||
|
zle -N edit-command-line
|
||||||
|
bindkey "^X^E" edit-command-line
|
||||||
|
|
||||||
# Prompt
|
# Prompt
|
||||||
if [[ -n $SSH_CONNECTION ]]; then
|
if [[ -n $SSH_CONNECTION ]]; then
|
||||||
HOST_LBL="%F{green}[%m]%f"
|
HOST_LBL="%F{green}[%m]%f"
|
||||||
|
|
Loading…
Add table
Reference in a new issue