Permalink
Browse files

For OSs that _don't_ have proper bash-completion for git by default.

*ahem* CentOS :[
  • Loading branch information...
1 parent dd2675f commit a2a0a535bcf73d831300fc313f207910acfa75fc @al-the-x committed Dec 3, 2012
Showing with 7 additions and 0 deletions.
  1. +3 −0 .bash_completion.d/git.sh
  2. +4 −0 .bashrc
@@ -0,0 +1,3 @@
+if [ -z "$(type -t __git_ps1)" ]; then
+ function __git_ps1 ( ) { echo '[ --- ]'; }
+fi
View
@@ -126,4 +126,8 @@ for BASH_COMPLETION_PATH in $BASH_COMPLETION_PATHS; do
fi
done
+if [ -d "$HOME/.bash_completion.d" ]; then
+ . $HOME/.bash_completion.d/*
+fi
+
PS1=$(prompt "$PS1")

0 comments on commit a2a0a53

Please sign in to comment.