Permalink
Browse files

adding bash-completion script from git source code and enabling git-a…

…ware prompt
  • Loading branch information...
1 parent de19d5d commit 3040a44d903890d4ef3f2cac12104a7c560bfa56 @git2samus committed Nov 29, 2011
Showing with 2,741 additions and 2 deletions.
  1. +1 −0 .bash_profile
  2. +2 −2 .bashrc
  3. +2,738 −0 .git-completion.bash
View
@@ -7,6 +7,7 @@ export CDPATH=.:~:~/dev
export PATH=$HOME/bin${PATH:+:$PATH}
+[[ -r ~/.git-completion.bash ]] && . ~/.git-completion.bash
[[ -r ~/.functionrc ]] && . ~/.functionrc
[[ -r ~/.bashrc ]] && . ~/.bashrc
View
@@ -5,9 +5,9 @@ if [[ $- = *i* ]]; then
# TODO: make conditional based on editing-mode (note: when changing modes from .inputrc $SHELLOPTS does not recognize it)
# bind -x '"\C-\M-w":kill -WINCH $$';; # can't use -x on .inputrc
- if [[ -r ~/.gitsh ]]; then
+ # detect git-aware prompt function
+ if [[ $(type -t __git_ps1) = function ]]; then
gitps1='$(__git_ps1)'
- . ~/.gitsh
fi
# monochrome
Oops, something went wrong.

0 comments on commit 3040a44

Please sign in to comment.