| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Perl script to show current Git branch and changeset status in the prompt.
Put the following in your ~/.bashrc
# Add git status to the existing bash prompt
GIT_PROMPT_PATH="$HOME/github/perl-git-prompt/git-prompt.pl"
if [[ ! "$PS1" =~ "$GIT_PROMPT_PATH" ]]; then
export PS1="\$($GIT_PROMPT_PATH)"$PS1
fiThis script assumes you have 256 color terminal support. It's 2013, you should have a 256 color terminal. If you still have a 16 color terminal no guarantees how this will look.
| Back | FazBrowse Home | New Git URL |