From 127098fc50d0162cea944a7b05a4403b455e9e14 Mon Sep 17 00:00:00 2001 From: Marcel Hoyer Date: Fri, 6 Apr 2012 12:15:51 +0200 Subject: [PATCH] + added separated xterm_color_ functions to be more flexible with color settings --- lib/termsupport.zsh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh index 893edc9bb..2c7ba13db 100644 --- a/lib/termsupport.zsh +++ b/lib/termsupport.zsh @@ -34,6 +34,14 @@ function xterm_color() { echo -e "\033[38;5;$1m$2\033[0m" } +function xterm_color_open() { + echo -e "\033[38;5;$1m" +} + +function xterm_color_reset() { + echo -e "\033[0m" +} + autoload -U add-zsh-hook add-zsh-hook precmd omz_termsupport_precmd add-zsh-hook preexec omz_termsupport_preexec