diff --git a/README.md b/README.md index 018ab20..7647320 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,8 @@ In particular the branch name, difference with remote branch, number of files st (an original idea from this [blog post][]). +`gitstatus.sh` added by [AKS](http://github.com/aks). + ## Examples The prompt may look like the following: @@ -57,7 +59,8 @@ The symbols are as follows: currently you have to tweak it in the ``gitprompt.sh`` 3. You can define ``prompt_callback`` function to tweak your prompt dynamicly 4. The current git repo information is obtained by the script `gitstatus.sh` or - `gitstatus.py`. Both scripts do the same thing. + `gitstatus.py`. Both scripts do the same thing, but the bash script is a tad + bit more quick, and is used by default. ```sh function prompt_callback { diff --git a/gitstatus.sh b/gitstatus.sh index 0561ee5..d290e07 100755 --- a/gitstatus.sh +++ b/gitstatus.sh @@ -1,5 +1,9 @@ #/bin/bash # -*- coding: UTF-8 -*- +# gitstatus.sh -- produce the current git repo status on STDOUT +# Functionally equivalent to 'gitstatus.py', but written in bash (not python). +# +# Alan K. Stebbens [http://github.com/aks] # change those symbols to whatever you prefer declare -a symbols