fix _brew completion default cache path

This commit is contained in:
Romain Bossart 2021-04-04 21:50:31 +02:00
parent 698c49067d
commit 09f686f38d
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ __brew_completion_caching_policy() {
(( $#tmp )) || return 0
# otherwise, invalidate if latest tap index file is missing or newer than cache file
tmp=( ${HOMEBREW_REPOSITORY:-/usr/local/Homebrew}/Library/Taps/*/*/.git/index(om[1]N) )
tmp=( $(brew --repository)/Library/Taps/*/*/.git/index(om[1]N) )
[[ -z $tmp || $tmp -nt $1 ]]
}

View File

@ -47,7 +47,7 @@ __brew_completion_caching_policy() {
(( $#tmp )) || return 0
# otherwise, invalidate if latest tap index file is missing or newer than cache file
tmp=( ${HOMEBREW_REPOSITORY:-/usr/local/Homebrew}/Library/Taps/*/*/.git/index(om[1]N) )
tmp=( $(brew --repository)/Library/Taps/*/*/.git/index(om[1]N) )
[[ -z $tmp || $tmp -nt $1 ]]
}