Rename external commands directory from examples.
Fixes Homebrew/homebrew#10829.
This commit is contained in:
parent
d47cf55f68
commit
e33937a1e3
@ -374,7 +374,7 @@ _brew ()
|
||||
done
|
||||
|
||||
if [[ $i -eq $COMP_CWORD ]]; then
|
||||
local ext=$(\ls $(brew --repository)/Library/Contributions/examples \
|
||||
local ext=$(\ls $(brew --repository)/Library/Contributions/cmds \
|
||||
2>/dev/null | sed -e "s/\.rb//g" -e "s/brew-//g")
|
||||
__brewcomp "
|
||||
--cache --cellar --config
|
||||
|
@ -322,10 +322,10 @@ scripts that reside somewhere in the PATH, named `brew-<cmdname>` or
|
||||
`brew-<cmdname>.rb`, which can be invoked like `brew cmdname`. This allows you
|
||||
to create your own commands without modifying Homebrew's internals.
|
||||
|
||||
A number of (useful, but unsupported) example commands are included and enabled
|
||||
A number of (useful, but unsupported) external commands are included and enabled
|
||||
by default:
|
||||
|
||||
$ ls `brew --repository`/Library/Contributions/examples
|
||||
$ ls `brew --repository`/Library/Contributions/cmds
|
||||
|
||||
Documentation for the included external commands as well as instructions for
|
||||
creating your own can be found on the wiki:
|
||||
|
2
bin/brew
2
bin/brew
@ -71,7 +71,7 @@ begin
|
||||
cmd = aliases[cmd] if aliases[cmd]
|
||||
|
||||
# Add example external commands to PATH before checking.
|
||||
ENV['PATH'] += ":#{HOMEBREW_REPOSITORY}/Library/Contributions/examples"
|
||||
ENV['PATH'] += ":#{HOMEBREW_REPOSITORY}/Library/Contributions/cmds"
|
||||
if system "/usr/bin/which -s brew-#{cmd}"
|
||||
%w[CACHE CELLAR LIBRARY_PATH PREFIX REPOSITORY].each do |e|
|
||||
ENV["HOMEBREW_#{e}"] = Object.const_get "HOMEBREW_#{e}"
|
||||
|
@ -353,13 +353,13 @@ Print the version number of brew to standard error and exit\.
|
||||
Homebrew, like \fBgit\fR(1), supports external commands\. These are executable scripts that reside somewhere in the PATH, named \fBbrew\-<cmdname>\fR or \fBbrew\-<cmdname>\.rb\fR, which can be invoked like \fBbrew cmdname\fR\. This allows you to create your own commands without modifying Homebrew\'s internals\.
|
||||
.
|
||||
.P
|
||||
A number of (useful, but unsupported) example commands are included and enabled by default:
|
||||
A number of (useful, but unsupported) external commands are included and enabled by default:
|
||||
.
|
||||
.IP "" 4
|
||||
.
|
||||
.nf
|
||||
|
||||
$ ls `brew \-\-repository`/Library/Contributions/examples
|
||||
$ ls `brew \-\-repository`/Library/Contributions/cmds
|
||||
.
|
||||
.fi
|
||||
.
|
||||
|
Loading…
x
Reference in New Issue
Block a user