diff options
| author | Xu Cheng | 2015-06-26 15:19:27 +0800 |
|---|---|---|
| committer | Xu Cheng | 2015-07-03 14:22:38 +0800 |
| commit | 78a7dea3a0f9acedd4151749fe351a52eeb5fa12 (patch) | |
| tree | 13c58bd7e323bd345ee5aa44e2df91871c21b819 /Library/Homebrew/global.rb | |
| parent | e537c6a59f488e3f59efa8ef6d4b0db0640887f0 (diff) | |
| download | brew-78a7dea3a0f9acedd4151749fe351a52eeb5fa12.tar.bz2 | |
add `brew command`
Closes Homebrew/homebrew#41034.
Signed-off-by: Xu Cheng <xucheng@me.com>
Diffstat (limited to 'Library/Homebrew/global.rb')
| -rw-r--r-- | Library/Homebrew/global.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Library/Homebrew/global.rb b/Library/Homebrew/global.rb index ba79f40d6..d9ec1a265 100644 --- a/Library/Homebrew/global.rb +++ b/Library/Homebrew/global.rb @@ -54,3 +54,20 @@ HOMEBREW_PULL_OR_COMMIT_URL_REGEX = %r[https://github\.com/([\w-]+)/homebrew(-[\ require 'compat' unless ARGV.include? "--no-compat" or ENV['HOMEBREW_NO_COMPAT'] ORIGINAL_PATHS = ENV['PATH'].split(File::PATH_SEPARATOR).map{ |p| Pathname.new(p).expand_path rescue nil }.compact.freeze + +HOMEBREW_INTERNAL_COMMAND_ALIASES = { + 'ls' => 'list', + 'homepage' => 'home', + '-S' => 'search', + 'up' => 'update', + 'ln' => 'link', + 'instal' => 'install', # gem does the same + 'rm' => 'uninstall', + 'remove' => 'uninstall', + 'configure' => 'diy', + 'abv' => 'info', + 'dr' => 'doctor', + '--repo' => '--repository', + 'environment' => '--env', + '--config' => 'config', +} |
