This project aims to provide an awesome git aware bash prompt for Varying Vagrant under Windows.
But it will definitely work for any host OS.
Lovingly Forked from oh-my-git
- Install the provided fonts. If you are on Windows, then install the
Windows Compatible
one. - Under Windows open Git Bash. Right click on the title bar and go to
Options > Text
. - Select the
FuraCode NF
font with 12pt size. - Apply and save changes.
Under your vagrant, first ssh into the box.
vagrant ssh
Now once under vagrant, run this command.
git clone https://wpquark.io/vagrant/bash-prompt-awesome.git ~/.oh-my-git && echo source ~/.oh-my-git/prompt.sh >> ~/.bashrc
Now restart the prompt. Under windows
exit
vagrant ssh
Enjoy.
oh-my-git can be disabled on a per-repository basis. Just add a
[oh-my-git]
enabled = false
in the .git/config
file of a repo to revert to the original prompt for that particular repo. This could be handy when working with very huge repository, when the git commands invoked by oh-my-git can slow down the prompt.
- Remove the line
source ~/.oh-my-git/prompt.sh
from the terminal boot script (.profile
or.bash_rc
) - Delete the oh-my-git repo with a
rm -fr ~/.oh-my-git
For More information, do check the original repo.