lib/aka.rb in aka-0.5.1 vs lib/aka.rb in aka-0.5.2

- old
+ new

@@ -8,9 +8,12 @@ def initialize @aliasPattern = /alias (\S+)="(.+)"/ @aliases = {} @fileName = "#{ENV["HOME"]}/.alias" + if !File.exists? @fileName + FileUtils.touch @fileName + end debug ("made it to the class. filenName is #{@fileName}, aliasPattern is #{@aliasPattern}.") #Open the alias list File.foreach(@fileName) do |line| @aliasPattern.match(line)do |match| #read them all into an array