diff options
-rw-r--r-- | README | 15 | ||||
-rw-r--r-- | git-demo | 4 | ||||
-rw-r--r-- | prompt | 2 |
3 files changed, 17 insertions, 4 deletions
@@ -3,8 +3,23 @@ GIT Prompt Picture worth a thousand words, see wiki for screenshots +DEPENDECY + bash (tested with v3.2.33) + git (optinal) + svn (optinal) + sed + tput (terminfo) + tty + grep + locale + id + + TODO limit number of files displayed VIM module needs to be moved out of GIT module make module + +leonid@volnitsky.com +http://github.com/lvv/git-prompt/tree/master @@ -14,11 +14,9 @@ git commit -q -m "1st hello" git checkout -b universe; git clean -f echo 'main() {puts("Hello Universe!");}' > hello.c git add hello.c -echo "1st BAR" > BAR -git add BAR echo "// FIXME: includes" >> hello.c git add hello.c -git commit -q -m "hello.c moded, BAR added" +git commit -q -m "notes to self" git checkout master cat hello.c echo 'main() {puts("Hello Universe!"); exit(0);}' > hello.c @@ -223,7 +223,7 @@ set_shell_title() { parse_svn_dir() { - if [[ ! -d .svn ]]; then + if [[ ! -d .svn || $HOME == $PWD ]]; then # if home dir under svn - don't clutter home dir prompt return 1 fi |