brew uninstall alias for brew rm

This commit is contained in:
Max Howell 2009-05-23 18:14:35 +01:00
parent 87727356bc
commit dad6dbc6f7

View File

@ -37,7 +37,7 @@ case ARGV[0]
file+='.rb' unless File.exist? file
system "ruby #{file} #{ARGV.join ' '}"
when 'rm' then
when 'rm', 'uninstall' then
path=$root+'Cellar'+ARGV[1]
abort "#{ARGV[1]} is not installed" unless path.directory?
path.rmtree