mirror of
https://gitee.com/mirrors/ohmyzsh.git
synced 2026-10-15 03:46:45 +08:00
Display red dots during completion process (disabled by default)
This commit is contained in:
1 parent
3350c2298f
commit
0848acfb25
2 files changed
+12
No files matched your search
@@ -59,3 +59,12 @@ zstyle ':completion:*:*:*:users' ignored-patterns \
|
||||
# ... unless we really want to.
|
||||
zstyle '*' single-ignored show
|
||||
|
||||
if [ "x$COMPLETION_WAITING_DOTS" = "xtrue" ]; 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
|
||||
Reference in new issue
Block a user