dotfiles/shells/zsh/lib/completion-waiting-dots.zsh

9 lines
223 B
Bash
Raw Normal View History

# http://stackoverflow.com/a/844299
expand-or-complete-with-dots() {
echo -n "\e[31m...\e[0m"
zle expand-or-complete
zle redisplay
}
zle -N expand-or-complete-with-dots
bindkey "^I" expand-or-complete-with-dots