From d91e1422b07ffb7dc0c371e00f9ba4c0e4186571 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Mengu=C3=A9?= Date: Fri, 27 Dec 2013 21:47:20 +0100 Subject: [PATCH] Fix regexp for LP_ENABLE_TITLE LP_ENABLE_TITLE is now fixed, at least on GNU/Linux with gnome-terminal. --- liquidprompt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liquidprompt b/liquidprompt index 088a37b..19a84f0 100755 --- a/liquidprompt +++ b/liquidprompt @@ -1477,7 +1477,7 @@ _lp_as_text() { # Remove colors from the computed prompt local pst - pst="$(echo "$1" | sed -$_LP_SED_EXTENDED "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g")" + pst="$(echo "$1" | sed -$_LP_SED_EXTENDED 's/\x1B\[[0-9;]*[mK]//g')" # Remove escape sequences # FIXME check the zsh compatibility