mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-11-16 02:41:13 +00:00
command-not-found: Minor reformatting
This commit is contained in:
parent
3093f1b966
commit
dc8e168d5f
@ -17,7 +17,9 @@ elif [[ -s '/usr/share/doc/pkgfile/command-not-found.zsh' ]]; then
|
|||||||
# lookup mechanism (viz., `brew command command-not-found-init`) and instead
|
# lookup mechanism (viz., `brew command command-not-found-init`) and instead
|
||||||
# `find` it ourselves from `TAP_DIRECTORY` defined internally in Homebrew.
|
# `find` it ourselves from `TAP_DIRECTORY` defined internally in Homebrew.
|
||||||
elif (( $+commands[brew] )); then
|
elif (( $+commands[brew] )); then
|
||||||
cnf_command=("$(brew --repository 2> /dev/null)"/Library/Taps/*/*/cmd/brew-command-not-found-init(|.rb)(.NL+0))
|
cnf_command=(
|
||||||
|
"$(brew --repository 2> /dev/null)"/Library/Taps/*/*/cmd/brew-command-not-found-init(|.rb)(.N)
|
||||||
|
)
|
||||||
if (( $#cnf_command )); then
|
if (( $#cnf_command )); then
|
||||||
cache_file="${TMPDIR:-/tmp}/prezto-brew-command-not-found-cache.$UID.zsh"
|
cache_file="${TMPDIR:-/tmp}/prezto-brew-command-not-found-cache.$UID.zsh"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user