1

I've reinstalled Ubuntu for Windows on my machine, and I also use Git Bash. Aside from setting up aliases I want to have the terminal (Bash) replicate the same colour scheme that Git Bash uses, along with the branch name in the terminal.

How can I achieve this?

Scott Weldon
  • 8,912
  • 6
  • 47
  • 64
Colonel Mustard
  • 1,382
  • 1
  • 17
  • 41

1 Answers1

0

git for Windows uses the same contrib/completion/git-prompt.sh script as git/git does.

So make sure, as explained in "Displaying git branch name in prompt does not work in screen", to:

  • make sure that script is in /etc/bash_completion.d
  • source /etc/bash_completion.d/git-prompt (or at least source it from your ~/.bashrc: it could be referenced in your ~/.bash_profile)
Community
  • 1
  • 1
VonC
  • 1,129,465
  • 480
  • 4,036
  • 4,755