mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-12-01 04:59:47 -05:00
Fixes #433
This commit is contained in:
1 parent
ec1b2fda92
commit
ad2c375ca1
1 file changed
+2
-1
@@ -38,7 +38,8 @@ end
|
||||
class Formulary
|
||||
# Returns all formula names as strings, with or without aliases
|
||||
def self.names with_aliases=false
|
||||
everything = (HOMEBREW_REPOSITORY+'Library/Formula').children.map{|f| f.basename('.rb').to_s }
|
||||
filenames = (HOMEBREW_REPOSITORY+'Library/Formula').children.select {|f| f.to_s =~ /\.rb$/ }
|
||||
everything = filenames.map{|f| f.basename('.rb').to_s }
|
||||
everything.push *Formulary.get_aliases.keys if with_aliases
|
||||
everything.sort
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user