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?
Asked
Active
Viewed 1,037 times
1 Answers
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
-
Hi Thank you..where can i find the .bashrc in windows? – Abhilash Oct 04 '14 at 12:25
-
Try this vi ~/.bashrc – Saurabh Oct 04 '14 at 14:30
-
I pasted the above example command on that and saved aswell. But still no changes. – Abhilash Oct 04 '14 at 18:48
-
Did you restart the terminal. You have to do that. Also try source ~/.bashrc – Saurabh Oct 04 '14 at 19:26
-
Yes I tried it again by restarting the server. But no changes – Abhilash Oct 04 '14 at 19:53
-
You could also try to change the settings from the Git Bash properties. It should be somewhere in the main menu or should be in the box that appears when right click. Also try some git config commands as **git config --global color.ui auto** or **git config --global --add color.ui** – Saurabh Oct 04 '14 at 20:08
-
Thank you for trying to help. But its still not working – Abhilash Oct 04 '14 at 21:11