Rename Library/Contributions/cmds -> cmd.
This commit is contained in:
parent
e9d58c4100
commit
4a281cd5cf
@ -374,7 +374,7 @@ _brew ()
|
|||||||
done
|
done
|
||||||
|
|
||||||
if [[ $i -eq $COMP_CWORD ]]; then
|
if [[ $i -eq $COMP_CWORD ]]; then
|
||||||
local ext=$(\ls -p $(brew --repository)/Library/Contributions/cmds \
|
local ext=$(\ls -p $(brew --repository)/Library/Contributions/cmd \
|
||||||
2>/dev/null | sed -e "s/\.rb//g" -e "s/brew-//g" \
|
2>/dev/null | sed -e "s/\.rb//g" -e "s/brew-//g" \
|
||||||
-e "s/.*\///g")
|
-e "s/.*\///g")
|
||||||
__brewcomp "
|
__brewcomp "
|
||||||
|
@ -10,7 +10,7 @@ for command in (ls (brew --repository)/Library/Homebrew/cmd | sed -e "s/\.rb//g"
|
|||||||
set commands $command $commands
|
set commands $command $commands
|
||||||
end
|
end
|
||||||
|
|
||||||
for command in (ls -p (brew --repository)/Library/Contributions/cmds | sed -e "s/\.rb//g" -e "s/brew-//g" -e "s/.*\///g")
|
for command in (ls -p (brew --repository)/Library/Contributions/cmd | sed -e "s/\.rb//g" -e "s/brew-//g" -e "s/.*\///g")
|
||||||
set commands $command $commands
|
set commands $command $commands
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -49,4 +49,3 @@ EOF
|
|||||||
rm $tmp_file
|
rm $tmp_file
|
||||||
|
|
||||||
echo "The formulae for the aspell dictionaries have been written to\n$brew_formulae_tmp_file"
|
echo "The formulae for the aspell dictionaries have been written to\n$brew_formulae_tmp_file"
|
||||||
|
|
@ -11,7 +11,7 @@ require 'formula'
|
|||||||
require 'utils'
|
require 'utils'
|
||||||
require 'date'
|
require 'date'
|
||||||
|
|
||||||
HOMEBREW_CONTRIBUTED_CMDS = HOMEBREW_REPOSITORY + "Library/Contributions/cmds/"
|
HOMEBREW_CONTRIBUTED_CMDS = HOMEBREW_REPOSITORY + "Library/Contributions/cmd/"
|
||||||
|
|
||||||
class Step
|
class Step
|
||||||
attr_reader :command, :repository
|
attr_reader :command, :repository
|
@ -342,7 +342,7 @@ to create your own commands without modifying Homebrew's internals.
|
|||||||
A number of (useful, but unsupported) external commands are included and enabled
|
A number of (useful, but unsupported) external commands are included and enabled
|
||||||
by default:
|
by default:
|
||||||
|
|
||||||
$ ls `brew --repository`/Library/Contributions/cmds
|
$ ls `brew --repository`/Library/Contributions/cmd
|
||||||
|
|
||||||
Documentation for the included external commands as well as instructions for
|
Documentation for the included external commands as well as instructions for
|
||||||
creating your own can be found on the wiki:
|
creating your own can be found on the wiki:
|
||||||
|
2
bin/brew
2
bin/brew
@ -82,7 +82,7 @@ begin
|
|||||||
end
|
end
|
||||||
|
|
||||||
# Add example external commands to PATH before checking.
|
# Add example external commands to PATH before checking.
|
||||||
ENV['PATH'] += ":#{HOMEBREW_REPOSITORY}/Library/Contributions/cmds"
|
ENV['PATH'] += ":#{HOMEBREW_REPOSITORY}/Library/Contributions/cmd"
|
||||||
if require? HOMEBREW_REPOSITORY/"Library/Homebrew/cmd"/cmd
|
if require? HOMEBREW_REPOSITORY/"Library/Homebrew/cmd"/cmd
|
||||||
Homebrew.send cmd.to_s.gsub('-', '_').downcase
|
Homebrew.send cmd.to_s.gsub('-', '_').downcase
|
||||||
elsif which "brew-#{cmd}"
|
elsif which "brew-#{cmd}"
|
||||||
|
@ -382,7 +382,7 @@ A number of (useful, but unsupported) external commands are included and enabled
|
|||||||
.
|
.
|
||||||
.nf
|
.nf
|
||||||
|
|
||||||
$ ls `brew \-\-repository`/Library/Contributions/cmds
|
$ ls `brew \-\-repository`/Library/Contributions/cmd
|
||||||
.
|
.
|
||||||
.fi
|
.fi
|
||||||
.
|
.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user