1.1.4 • Published 5 years ago

git-branch-color-status v1.1.4

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

Git Branch Color Status

What is this?

It's a software to inform you the current state of your repository through symbols and colors

How does it work?

It runs Bash scripts that checks the state of the git repository present on the current directory and displays it through symbols and colors

Requirements

How to use it?

  • Install it by executing sudo npm install -g git-branch-color-status
  • Configure your PS1 on your .bashrc file like this PS1+="\$(git-branch-color-status)";

Options available

OptionDescriptionTypeNumber of ArgumentsAvailable ArgumentsDefault ValueSyntax
Versiondisplays the current version number and exitBoolean0N/Afalse-v --version
Colorenable colored outputBoolean0N/Atrue-c --color
No Colordisable colored outputBoolean0N/Afalse--no-c --no-color
Bracketspecify the type of brackets displayed surrounding the branch statusString1round, square, curlysquare-b round -b "round" -b=round -b="round" --bracket round --bracket "round" --bracket=round --bracket="round"

Exemples

CommandOutput
git-branch-color-statusword "master" colored in green surrounded by square brackets
git-branch-color-status --no-colorword "master" colored in white surrounded by square brackets
git-branch-color-status --no-c --bracket=roundword "master" colored in white surrounded by round brackets

Symbols and Colors available

Symbols available

SymbolDescription
>There are renamed files being tracked
*Your branch is ahead of remote
+There are new files being tracked
?There are untracked files
xThere are deleted tracked files
!There are modified tracked files

Colors available

ColorDescription
word "Green" colored in greenWorking tree clean, nothing to commit
word "Yellow" colored in yellowYour branch is ahead of remote branch
word "Red" colored in redWorking tree not clean

How to contribute

Fork this project, create a branch, push your changes and make a pull request destined to the master branch

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago