Merge pull request #492 from hwti/red-dots-completion

Display red dots during completion process (disabled by default)
This commit is contained in:
Robby Russell 2011-08-11 05:51:03 -07:00
commit be2ab22694
2 changed files with 12 additions and 0 deletions

View file

@ -59,3 +59,12 @@ zstyle ':completion:*:*:*:users' ignored-patterns \
# ... unless we really want to.
zstyle '*' single-ignored show
if [ "$DISABLE_COMPLETION_WAITING_DOTS" != "true" ]; then
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
fi