With the brew formula, I'd recommend you add something about saving the file as rb.rb. I saved this as rbcmd.rb and brew gets upset about that. It's kinda obvious if you read the error message and the formula, but had to see it error first.
Your example cmd aliases have a duplicate for the alias 'l'. I copied in the aliases and ran rb l and got the usage message for rb local. So list and local are aliased the same in your example. I switched list to use ls and all is good.
Only ran into a couple issues, very minor:
rb.rb
. I saved this asrbcmd.rb
and brew gets upset about that. It's kinda obvious if you read the error message and the formula, but had to see it error first.rb l
and got the usage message forrb local
. Solist
andlocal
are aliased the same in your example. I switchedlist
to usels
and all is good.