Straight up steal oh-my-zsh autocompletion
This commit is contained in:
parent
fe38c90b12
commit
fc93915876
3 changed files with 75 additions and 6 deletions
|
@ -24,12 +24,6 @@ precmd() {
|
|||
}
|
||||
local vcs='${vcs_info_msg_0_}'
|
||||
|
||||
# autocorrect
|
||||
autoload -U compinit
|
||||
compinit
|
||||
setopt correct_all
|
||||
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
|
||||
|
||||
# prompt
|
||||
local return_code="%(?..%?)"
|
||||
local prompt="%(?.%F{green}->.%F{red}-%B${return_code}%b%F{red}->%{%})%f"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue