I'm trying to store a=$(git status)
to send it's content to a script and then print the result to the terminal. The problem is that the git colors are not gone. All the result is now without colors.
Any solution to this problem?
I'm trying to store a=$(git status)
to send it's content to a script and then print the result to the terminal. The problem is that the git colors are not gone. All the result is now without colors.
Any solution to this problem?
The following should do the trick.
a="$(git -c color.status=always status)"
echo "$a"