diff options
author | Leonid Volnitsky <Leonid@Volnitsky.com> | 2008-06-30 14:10:24 +0300 |
---|---|---|
committer | Leonid Volnitsky <Leonid@Volnitsky.com> | 2008-06-30 14:10:24 +0300 |
commit | 58a1c0f6aaf30e1364a0eea8f85a0394f5d5f06e (patch) | |
tree | 0cc1c71844d61a3769820a5da24ab6045607cd2d | |
parent | added VIM session detection (diff) | |
download | git-prompt-58a1c0f6aaf30e1364a0eea8f85a0394f5d5f06e.tar.gz git-prompt-58a1c0f6aaf30e1364a0eea8f85a0394f5d5f06e.tar.bz2 git-prompt-58a1c0f6aaf30e1364a0eea8f85a0394f5d5f06e.zip |
don't show svn if in home dir, also demo script and README edit,
-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 |