1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-25 09:41:20 +08:00

Use prompt expansion sequence to color red the output

This makes it clearer and possibly more portable for different
platforms.
This commit is contained in:
Marc Cornellà 2015-08-16 22:19:59 +02:00
parent 3976e04035
commit 6a8d406eaa

View File

@ -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
}