GIT Prompt for BASH
Picture worth a thousand words, see wiki for screenshots
http://github.com/lvv/git-prompt/wikis
INSTALL
Put following command in our profile in interactive section:
. /etc/git-prompt.sh
If there are no interactivity test in your profile, then above command should be:
[[ $- == *i* ]] && . /etc/git-prompt.sh
DEPENDENCY
Most of dependencies (except git and svn) are probably already installed on your host.
bash (tested with v3.2.33)
git (optional)
svn (optional)
sed
tput (terminfo)
tty (core utils)
grep
locale (glibc)
id (core utils)
TODO
- TO FIX: when file list is too long, git-prompt truncates it. Sometimes this truncation can be on color escape sequence.
- external config at /etc/git-prompt.conf and ~/.git-prompt.conf
- wiki/screen-shots for labels and svn module
- VIM module needs to be moved out of GIT module
- make module (to show generated, stale files)
- How detect current merge? (current method through .git/MERGE_HEAD not always works)
DONE
- limit number of files displayed
leonid@volnitsky.com
http://github.com/lvv/git-prompt/tree/master