Basic Git Prompt for Bash.
Usage
Prompt will add branch name under a git repository. For example:
~/basic-git-prompt$ (master)
Git status is based on colors:
- RED: (master) Local repository has commits to be published.
- YELLOW: (master) Local repository has changes to be committed.
- BLUE: (master) Local repository has differences.
- CYAN: (master) Local repository has untracked files.
- GREEN: (master) Local repository is up to date.
Installation
Easy way of installation via git.
cd ~ git clone https://github.com/kdaimiel/basic-git-prompt.git .basic-git-prompt
Add to ~/.bashrc:
source ~/.basic-git-prompt/git-prompt.sh