diff --git a/lib/aliases.rb b/lib/aliases.rb index c70e9da..2a954ce 100644 --- a/lib/aliases.rb +++ b/lib/aliases.rb @@ -13,9 +13,11 @@ module Aliases else path end.freeze - RESERVED = (Commands::HOMEBREW_INTERNAL_COMMAND_ALIASES.keys + \ - Dir["#{HOMEBREW_LIBRARY_PATH}/cmd/*.rb"].map { |cmd| File.basename(cmd, ".rb") } + \ - %w[alias unalias]).freeze + RESERVED = ( + Commands::HOMEBREW_INTERNAL_COMMAND_ALIASES.keys + + Dir["#{HOMEBREW_LIBRARY_PATH}/cmd/*.rb"].map { |cmd| File.basename(cmd, ".rb") } + + %w[alias unalias] + ).freeze module_function