Skip to content

Commit

Permalink
Support built-in 'printf' function of fish 2.0.0
Browse files Browse the repository at this point in the history
printf function of fish 2.0.0 does not support `\e` escaping.

See also:
  fish-shell/fish-shell#910
  fish-shell/fish-shell@d3bb2a71
  • Loading branch information
simnalamburt committed Oct 28, 2016
1 parent ad4e6fd commit 74ad5e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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
Expand Down

0 comments on commit 74ad5e9

Please sign in to comment.