From 2164b3a1690829fff91a9151f6e3ace2a192d5d6 Mon Sep 17 00:00:00 2001 From: Marcel Hoyer Date: Fri, 6 Apr 2012 14:24:35 +0200 Subject: [PATCH] * fixed escaping issue with zsh completion system --- lib/termsupport.zsh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh index 2c7ba13db..6ee4eb596 100644 --- a/lib/termsupport.zsh +++ b/lib/termsupport.zsh @@ -31,15 +31,15 @@ function omz_termsupport_preexec { # Prints given 2nd argument with xterm color code of 1st argument # see http://www.calmar.ws/vim/256-xterm-24bit-rgb-color-chart.html for color codes function xterm_color() { - echo -e "\033[38;5;$1m$2\033[0m" + echo -e "%{\033[38;5;$1m%}$2%{\033[0m%}" } function xterm_color_open() { - echo -e "\033[38;5;$1m" + echo -e "%{\033[38;5;$1m%}" } function xterm_color_reset() { - echo -e "\033[0m" + echo -e "%{\033[0m%}" } autoload -U add-zsh-hook