diff options
| author | Adam Vandenberg | 2010-01-13 10:03:49 -0800 |
|---|---|---|
| committer | Max Howell | 2010-01-16 15:33:32 +0000 |
| commit | 9dc39c391a8bf81d680c7601a1097a02b91d13f4 (patch) | |
| tree | b606ff077159b41cd59d0b1537e19fa10bae4a53 /Library | |
| parent | be842ee554f6720a202f0622000e142e3e4ab776 (diff) | |
| download | brew-9dc39c391a8bf81d680c7601a1097a02b91d13f4.tar.bz2 | |
Some bulletproofing for bash completion script.
Since Homebrew's Library doesn't have to be linked under prefix,
we need to do some extra work in the bash completion script to
support this configuration.
Added a "--repository" option to brew, and updated the completion
script to use paths relative to this location.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Contributions/brew_bash_completion.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Library/Contributions/brew_bash_completion.sh b/Library/Contributions/brew_bash_completion.sh index ddd9c17e0..756621cf5 100644 --- a/Library/Contributions/brew_bash_completion.sh +++ b/Library/Contributions/brew_bash_completion.sh @@ -21,8 +21,7 @@ _brew_to_completion() return 0 # Subcommands else - brew_base=`which brew` - brew_base=`dirname ${brew_base}`/.. + brew_base=`brew --repository` case ${prev} in # Commands that take a formula... |
