summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README15
-rw-r--r--git-demo4
-rw-r--r--prompt2
3 files changed, 17 insertions, 4 deletions
diff --git a/README b/README
index 4b4c359..f034a36 100644
--- a/README
+++ b/README
@@ -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
diff --git a/git-demo b/git-demo
index e14b820..1b303c1 100644
--- a/git-demo
+++ b/git-demo
@@ -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
diff --git a/prompt b/prompt
index 56e0090..9bca4d0 100644
--- a/prompt
+++ b/prompt
@@ -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