浏览代码

Revert "Enable red dots during completion by default".

After a few weeks of using this, I'd prefer this to not be enabled by default. My bad for suggesting that in the first place.

This reverts commit fc49b4a4ded376cd82b813dcb6d72fdc050b7bed.
Robby Russell 12 年之前
父节点
当前提交
9d67d75b0a
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      lib/completion.zsh
  2. 2 2
      templates/zshrc.zsh-template

+ 1 - 1
lib/completion.zsh

@@ -59,7 +59,7 @@ zstyle ':completion:*:*:*:users' ignored-patterns \
 # ... unless we really want to.
 zstyle '*' single-ignored show
 
-if [ "$DISABLE_COMPLETION_WAITING_DOTS" != "true" ]; then
+if [ "x$COMPLETION_WAITING_DOTS" = "xtrue" ]; then
   expand-or-complete-with-dots() {
     echo -n "\e[31m......\e[0m"
     zle expand-or-complete

+ 2 - 2
templates/zshrc.zsh-template

@@ -19,8 +19,8 @@ ZSH_THEME="robbyrussell"
 # Uncomment following line if you want to disable autosetting terminal title.
 # DISABLE_AUTO_TITLE="true"
 
-# Uncomment following line if you want disable red dots displayed while waiting for completion
-# DISABLE_COMPLETION_WAITING_DOTS="true"
+# Uncomment following line if you want red dots to be displayed while waiting for completion
+# COMPLETION_WAITING_DOTS="true"
 
 # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
 # Example format: plugins=(rails git textmate ruby lighthouse)