I'm tring to add a complex git alias that will echo messages as it performs commands. I'd like to colorize some of the messages (Red for error, etc).
[alias]
test = !"f() { echo "\033[31mHello\033[0m World"; }; f"
However when I execute the alias I get an error:
bad config line X in file .gitconfig`
Running the same command echo "\033[31mHello\033[0m World"
in the terminal colorizes just fine.