Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

*ahem* CentOS :[
  • Loading branch information...
commit a2a0a535bcf73d831300fc313f207910acfa75fc 1 parent dd2675f
@al-the-x authored
Showing with 7 additions and 0 deletions.
  1. +3 −0  .bash_completion.d/git.sh
  2. +4 −0 .bashrc
View
3  .bash_completion.d/git.sh
@@ -0,0 +1,3 @@
+if [ -z "$(type -t __git_ps1)" ]; then
+ function __git_ps1 ( ) { echo '[ --- ]'; }
+fi
View
4 .bashrc
@@ -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")
Please sign in to comment.
Something went wrong with that request. Please try again.