From 95b844570fc214cba726bb1bdbafb4bc3a27f4e4 Mon Sep 17 00:00:00 2001 From: Gurkirat Singh Date: Fri, 10 Feb 2023 18:52:01 +0530 Subject: [PATCH] fix (plugins): enable interpretation of backslash escapes in colors --- plugins/available/colors.plugin.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/available/colors.plugin.bash b/plugins/available/colors.plugin.bash index 47f55609..73c144b8 100644 --- a/plugins/available/colors.plugin.bash +++ b/plugins/available/colors.plugin.bash @@ -8,13 +8,13 @@ function __() { function __make_ansi() { next=$1 shift - echo "\[\e[$("__$next" "$@")m\]" + echo -e "\[\e[$("__$next" "$@")m\]" } function __make_echo() { next=$1 shift - echo "\033[$("__$next" "$@")m" + echo -e "\033[$("__$next" "$@")m" } function __reset() {