Add zsh command line editing like bash
This commit is contained in:
parent
be604593fb
commit
7b67737a21
@ -40,6 +40,7 @@ setopt auto_menu # tab completion
|
|||||||
setopt prompt_subst # command substitution in prompt
|
setopt prompt_subst # command substitution in prompt
|
||||||
unsetopt correct_all
|
unsetopt correct_all
|
||||||
autoload -Uz compinit && compinit
|
autoload -Uz compinit && compinit
|
||||||
|
autoload -z edit-command-line
|
||||||
|
|
||||||
# Deduplicate path
|
# Deduplicate path
|
||||||
typeset -U path
|
typeset -U path
|
||||||
@ -50,6 +51,8 @@ bindkey '\e[3~' delete-char
|
|||||||
bindkey '^p' history-search-backward
|
bindkey '^p' history-search-backward
|
||||||
bindkey '^n' history-search-forward
|
bindkey '^n' history-search-forward
|
||||||
bindkey ' ' magic-space
|
bindkey ' ' magic-space
|
||||||
|
zle -N edit-command-line
|
||||||
|
bindkey "^X^E" edit-command-line
|
||||||
|
|
||||||
# * * * * * *
|
# * * * * * *
|
||||||
# Aliases *
|
# Aliases *
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user