Show dots when doing tab completion

This commit is contained in:
Paweł Płazieński 2019-01-14 21:06:37 +01:00
parent c2b1c7df98
commit 9581099734

9
zshrc
View File

@ -459,8 +459,15 @@ bindkey "\e[H" beginning-of-line
bindkey "\e[F" end-of-line
# Tab completion
expand-or-complete-with-indicator() {
print -Pn "%{%F{red}...%f%}"
zle expand-or-complete
zle redisplay
}
zle -N expand-or-complete-with-indicator
bindkey "^I" expand-or-complete-with-indicator
bindkey "^r" history-incremental-search-backward
bindkey '^i' complete-word # tab to do menu
bindkey "\e[Z" reverse-menu-complete # shift-tab to reverse menu
# Up/down arrow.