From 7c77223b154bf8d0f7d6d879bebbb7efb91ca548 Mon Sep 17 00:00:00 2001 From: gmajkic Date: Thu, 13 Oct 2022 17:02:14 +0200 Subject: [PATCH] fix(theme): use correct escape sequence to avoid weird text overwriting --- themes/parrot/parrot.theme.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/parrot/parrot.theme.bash b/themes/parrot/parrot.theme.bash index a0d259dd..251eb942 100644 --- a/themes/parrot/parrot.theme.bash +++ b/themes/parrot/parrot.theme.bash @@ -2,7 +2,7 @@ # git branch parser function parse_git_branch() { - echo -e "\033[1;34m$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/')\033[0m" + echo -e "\[\033[1;34m\]$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/')\[\033[0m\]" } function parse_git_branch_no_color() {