fix _brew completion default cache path
This commit is contained in:
parent
698c49067d
commit
09f686f38d
@ -44,7 +44,7 @@ __brew_completion_caching_policy() {
|
|||||||
(( $#tmp )) || return 0
|
(( $#tmp )) || return 0
|
||||||
|
|
||||||
# otherwise, invalidate if latest tap index file is missing or newer than cache file
|
# 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 ]]
|
[[ -z $tmp || $tmp -nt $1 ]]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -47,7 +47,7 @@ __brew_completion_caching_policy() {
|
|||||||
(( $#tmp )) || return 0
|
(( $#tmp )) || return 0
|
||||||
|
|
||||||
# otherwise, invalidate if latest tap index file is missing or newer than cache file
|
# 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 ]]
|
[[ -z $tmp || $tmp -nt $1 ]]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user