Skip to content

Commit

Permalink
Conditionally load completion scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Hutchison committed Feb 25, 2012
1 parent 0ac5464 commit 9a49915
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions bash/completions
@@ -1,5 +1,13 @@
source ~/.bash/completion_scripts/git_completion
source `brew --prefix`/Library/Contributions/brew_bash_completion.sh
complete -C ~/.bash/completion_scripts/rake_completion -o default rake
complete -C ~/.bash/completion_scripts/project_completion -o default c
complete -C ~/.bash/completion_scripts/capistrano_completion -o default cap

if which git &> /dev/null; then
source ~/.bash/completion_scripts/git_completion
else
echo "Hmmm... git doesn't seem to be installed."
fi

if which brew &> /dev/null; then
source `brew --prefix`/Library/Contributions/brew_bash_completion.sh
fi

0 comments on commit 9a49915

Please sign in to comment.