0

I am doing rails development on windows 8. I am using gitbash as commandline tool. The issue is that the commands and outputs are all showing in plain white color, which is quite hard to read. But in mac its all nicely shown by changing colors for specific tasks. Is it possible to change the color in gitbash on windows aswell or is there any other commandline tool that I can use which have the functionality like a mac terminal?

Abhilash
  • 2,864
  • 3
  • 33
  • 67

1 Answers1

0

Check this answer. It should help.

In your .bashrc you can set your prompt using the PS1 variable (which is likely set to a global value in /etc/profile or another file in /etc which may be distribution dependent).

Here's a example

PS1='\[\033[1;36m\]\u@\h:\[\033[0m\]\[\033[1;34m\]\w\[\033[0m\] \[\033[1;32m\]$(__git_ps1)\[\033[0m\]\$ '

Hope it helps

Community
  • 1
  • 1
Saurabh
  • 1,086
  • 1
  • 15
  • 27