浏览代码

Use prompt expansion sequence to color red the output

This makes it clearer and possibly more portable for different
platforms.
Marc Cornellà 8 年之前
父节点
当前提交
6a8d406eaa
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/completion.zsh

+ 1 - 1
lib/completion.zsh

@@ -60,7 +60,7 @@ zstyle '*' single-ignored show
 
 if [[ $COMPLETION_WAITING_DOTS = true ]]; then
   expand-or-complete-with-dots() {
-    echo -n "\e[31m......\e[0m"
+    print -Pn "%{%F{red}......%f%}"
     zle expand-or-complete
     zle redisplay
   }