From 74ad5e956cfbe0126f8318bc9b9cb91fc050927b Mon Sep 17 00:00:00 2001 From: Hyeon Kim Date: Fri, 28 Oct 2016 18:19:25 +0900 Subject: [PATCH] Support built-in 'printf' function of fish 2.0.0 printf function of fish 2.0.0 does not support `\e` escaping. See also: https://github.com/fish-shell/fish-shell/issues/910 https://github.com/fish-shell/fish-shell/commit/d3bb2a71 --- init.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.fish b/init.fish index 2af7fad..97e46e4 100644 --- a/init.fish +++ b/init.fish @@ -1,7 +1,7 @@ # Skip if cgitc_revision is up to date set -l current_revision (git -C (dirname (status -f)) rev-parse HEAD) if [ "$cgitc_revision" != "$current_revision" ] - printf 'Initializing \e[33mcgitc\e[0m ... ' + printf 'Initializing \x1b[33mcgitc\x1b[0m ... ' set -l cgitc_text ( for line in (cat (dirname (status -f))/abbreviations) # 1. Strip out comments