Add brew search --debian <f>
This commit is contained in:
parent
1a7ea33ba5
commit
0e7d47332c
@ -313,7 +313,7 @@ _brew_search ()
|
|||||||
local cur="${COMP_WORDS[COMP_CWORD]}"
|
local cur="${COMP_WORDS[COMP_CWORD]}"
|
||||||
case "$cur" in
|
case "$cur" in
|
||||||
--*)
|
--*)
|
||||||
__brewcomp "--fink --macports"
|
__brewcomp "--debian --fink --macports"
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -266,8 +266,8 @@ Note that these flags should only appear after a command.
|
|||||||
surrounded with slashes, then it is interpreted as a regular expression.
|
surrounded with slashes, then it is interpreted as a regular expression.
|
||||||
If no search term is given, all available formula are displayed.
|
If no search term is given, all available formula are displayed.
|
||||||
|
|
||||||
* `search --macports`|`--fink` <text>:
|
* `search --macports`|`--fink`|`--debian` <text>:
|
||||||
Search for <text> on the MacPorts or Fink package search page.
|
Search for <text> in MacPorts, Fink or Debian's package list.
|
||||||
|
|
||||||
* `sh [--env=std]`:
|
* `sh [--env=std]`:
|
||||||
Instantiate a Homebrew build environment. Uses our years-battle-hardened
|
Instantiate a Homebrew build environment. Uses our years-battle-hardened
|
||||||
|
@ -8,6 +8,8 @@ module Homebrew extend self
|
|||||||
exec_browser "http://www.macports.org/ports.php?by=name&substr=#{ARGV.next}"
|
exec_browser "http://www.macports.org/ports.php?by=name&substr=#{ARGV.next}"
|
||||||
elsif ARGV.include? '--fink'
|
elsif ARGV.include? '--fink'
|
||||||
exec_browser "http://pdb.finkproject.org/pdb/browse.php?summary=#{ARGV.next}"
|
exec_browser "http://pdb.finkproject.org/pdb/browse.php?summary=#{ARGV.next}"
|
||||||
|
elsif ARGV.include? '--debian'
|
||||||
|
exec_browser "http://packages.debian.org/search?keywords=#{ARGV.next}&searchon=names&suite=all§ion=all"
|
||||||
else
|
else
|
||||||
query = ARGV.first
|
query = ARGV.first
|
||||||
rx = case query
|
rx = case query
|
||||||
|
@ -293,8 +293,8 @@ If \fB\-\-force\fR is passed, and there are multiple versions of \fIformula\fR i
|
|||||||
Perform a substring search of formula names for \fItext\fR\. If \fItext\fR is surrounded with slashes, then it is interpreted as a regular expression\. If no search term is given, all available formula are displayed\.
|
Perform a substring search of formula names for \fItext\fR\. If \fItext\fR is surrounded with slashes, then it is interpreted as a regular expression\. If no search term is given, all available formula are displayed\.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
\fBsearch \-\-macports\fR|\fB\-\-fink\fR \fItext\fR
|
\fBsearch \-\-macports\fR|\fB\-\-fink\fR|\fB\-\-debian\fR \fItext\fR
|
||||||
Search for \fItext\fR on the MacPorts or Fink package search page\.
|
Search for \fItext\fR in MacPorts, Fink or Debian\'s package list\.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
\fBsh [\-\-env=std]\fR
|
\fBsh [\-\-env=std]\fR
|
||||||
|
Loading…
x
Reference in New Issue
Block a user