diff options
author | Robby Russell <robby@planetargon.com> | 2011-08-11 05:51:03 -0700 |
---|---|---|
committer | Robby Russell <robby@planetargon.com> | 2011-08-11 05:51:03 -0700 |
commit | be2ab226949831f502a05adfb513691693e03702 (patch) | |
tree | d21ed17622b99f34aae41b225cb11508c090c443 /lib/completion.zsh | |
parent | 098e515eff139a016deb4a16e6bbafd5fadbe017 (diff) | |
parent | fc49b4a4ded376cd82b813dcb6d72fdc050b7bed (diff) | |
download | zsh-be2ab226949831f502a05adfb513691693e03702.tar.gz zsh-be2ab226949831f502a05adfb513691693e03702.tar.bz2 zsh-be2ab226949831f502a05adfb513691693e03702.zip |
Merge pull request #492 from hwti/red-dots-completion
Display red dots during completion process (disabled by default)
Diffstat (limited to 'lib/completion.zsh')
-rw-r--r-- | lib/completion.zsh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/completion.zsh b/lib/completion.zsh index fdd0a8536..2a457402a 100644 --- a/lib/completion.zsh +++ b/lib/completion.zsh @@ -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 |