Skip to content

kdaimiel/basic-git-prompt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Basic Git Prompt for Bash

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages