Since we're only trying to get the names of the aliases, and not their values, this seems more complex than it needs to be. How about just filtering with `grep(/^alias\./)` after the call to `lines`?