From c2fdb1751e08f841a602d4dc59acc7c85c4cf625 Mon Sep 17 00:00:00 2001 From: Luc Didry Date: Mon, 13 Aug 2012 15:20:20 +0200 Subject: [PATCH] Fix bug in load printing (% not escaped in zsh) Same thing than c8f01e68a3abb2018468a6bc8d2d50a8b07ad3c5 --- liquidprompt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/liquidprompt b/liquidprompt index fdf9a05..adabb7e 100755 --- a/liquidprompt +++ b/liquidprompt @@ -759,7 +759,11 @@ __load_color() else ret="${ret}${CRIT_RED}" fi - ret="${ret}$load%${NO_COL}" + if [[ "$WORKING_SHELL" == "bash" ]]; then + ret="${ret}$load%${NO_COL}" + elif [[ "$WORKING_SHELL" == "zsh" ]]; then + ret="${ret}$load%%${NO_COL}" + fi echo -ne "${ret}" fi }