gr
gr copied to clipboard
gr ignores aliases set in the current context
Hi,
Thanks for gr
, what a cool little tool! I have a lot of aliases, like alias st=git status
, and I'd like it if gr
respected those aliases so I could do things like gr #all st
and gr #some st
without having to define an alias for every tag I may want to use.
I don't know how gr
works internally, but I'm guessing it launches subprocesses for each path. I think the solution may be as simple as passing the env into all of the subprocesses that gr launches.
My fork, see #27, is meant to address this, but it only works in bash currently.
That's awesome! Actually I ended up writing my own tool, the alias expansion only works on osx and linux (or machines with the alias
command), but the tool itself is cross platform. I haven't had time to document it and share it with the world, but ti lives here: https://github.com/jdfreder/pur