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
  • 9,673
  • 6
  • 48
  • 67
Colonel Mustard
  • 1,482
  • 2
  • 17
  • 42

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,262,500
  • 529
  • 4,410
  • 5,250