1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2024-11-14 16:31:12 +00:00
Commit Graph

15 Commits

Author SHA1 Message Date
Indrajit Raychaudhuri
c857e809c3 command-not-found: Detect Homebrew repo internally, not idiomatically
For performance reasons, we prefer detecting Homebrew prefix internally
instead of the more idiomatic form `brew --repository`.

We attempt looking up $HOMEBREW_REPOSITORY first (in case `brew shellenv`
has been sourced-in earlier). Else, we look it up by resolving absolute
path of $HOMEBREW_REPOSITORY.

This should work for most standard (and officially documented) Homebrew
installations.
2022-04-08 14:23:51 -05:00
Indrajit Raychaudhuri
40cc9f52f9 command-not-found: Simplify Homebrew on macOS setup
Now that 'command-not-found' helper loading has been significantly
simplified and the startup time improved in the official Homebrew tap,
the workaround for script detection (and caching) can be removed.
2021-04-30 03:10:33 -05:00
Texas Toland
ff91c8d410
Make .zcomp* location configurable (#1842) 2020-06-04 13:53:44 -07:00
Indrajit Raychaudhuri
dc8e168d5f
command-not-found: Minor reformatting 2018-12-14 20:57:10 -06:00
Indrajit Raychaudhuri
f745645342 command-not-found: Support custom Homebrew tap on MacOS
Added support for homebrew-command-not-found from a non-default tap
2018-12-11 13:26:43 -06:00
Indrajit Raychaudhuri
2286662b80 command-not-found: Restore idiomatic homebrewed handler loading on MacOS
As is the convention in prezto, we cache the command-not-found handler to
avoid incurring the performance penalty of loading ruby interpreter on
every call. This restores the 'Homebrew way' of loading command-not-found
handler.

Further, the formally recommended command lookup mechanism in Homebrew
(viz., `brew command command-not-found-init`) is ruby based and is super
slow. To avoid performance penalty, we `find` it ourselves from
`TAP_DIRECTORY` defined internally in Homebrew.

This also reinstates support for custom taps or non-standard Homebrew location.
2018-12-11 08:10:37 -06:00
Kaleb Elwert
f8f93d4b91 command-not-found: Directly source homebrew command-not-found handler
Fixes #1577, Fixes #1451
2018-04-29 17:39:39 -07:00
Ashish Gandhi
b6b43eb331 Rename "Mac OS X" to "macOS" in comments
This only changes references in text for human consumption. It leaves
out renaming paths because that can cause breaking changes.

Related issue https://github.com/sorin-ionescu/prezto/issues/1449.
2018-04-16 15:53:48 -07:00
Indrajit Raychaudhuri
b0c85eddf6 [command-not-found] Load brew 'command-not-found' if homebrew tap is available
Homebrew has _official_ tap that supports `command-not-found`.
Enable it when possible.
2017-07-12 20:51:44 -07:00
Sorin Ionescu
a84ac5b002 Only one newline at end of file 2014-10-09 23:38:15 -04:00
Daniel Renninghoff
e18f18af92 Support command-not-found on Arch Linux
Signed-off-by: Sorin Ionescu <sorin.ionescu@gmail.com>
2013-11-17 15:09:03 -05:00
Sorin Ionescu
060d9064f8 [Fix #202] Load modules all or nothing 2012-08-04 14:32:59 -04:00
Sorin Ionescu
24559be19d Add quotes around file names 2012-05-20 20:13:23 -04:00
Sorin Ionescu
e5ec94af42 Check for non-empty files, not just existance 2012-05-05 18:08:25 -04:00
Sorin Ionescu
a7340886b3 [#23] Rename plugins to modules 2012-04-05 13:39:40 -04:00