From 014e99109891561da1cebb469d536e2ae6f4a760 Mon Sep 17 00:00:00 2001 From: Piotr Usewicz Date: Wed, 6 Oct 2010 13:38:04 +0100 Subject: [PATCH 1/2] Added Homebrew completion plugin --- completion/brew.completion.bash | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 completion/brew.completion.bash diff --git a/completion/brew.completion.bash b/completion/brew.completion.bash new file mode 100644 index 00000000..10c81680 --- /dev/null +++ b/completion/brew.completion.bash @@ -0,0 +1,3 @@ +if [ -f `brew --prefix`/etc/bash_completion ]; then + . `brew --prefix`/etc/bash_completion +fi From 7899cb4e8e67ce9d44460f92a6353a8ac8856f29 Mon Sep 17 00:00:00 2001 From: Piotr Usewicz Date: Wed, 6 Oct 2010 13:53:00 +0100 Subject: [PATCH 2/2] Fix brew completion --- completion/brew.completion.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/completion/brew.completion.bash b/completion/brew.completion.bash index 10c81680..89c46466 100644 --- a/completion/brew.completion.bash +++ b/completion/brew.completion.bash @@ -1,3 +1,3 @@ -if [ -f `brew --prefix`/etc/bash_completion ]; then - . `brew --prefix`/etc/bash_completion +if [ -f `brew --prefix`/Library/Contributions/brew_bash_completion.sh ]; then + . `brew --prefix`/Library/Contributions/brew_bash_completion.sh fi