gr icon indicating copy to clipboard operation
gr copied to clipboard

gr ignores aliases set in the current context

Open jdfreder opened this issue 9 years ago • 2 comments

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.

jdfreder avatar May 29 '15 21:05 jdfreder

My fork, see #27, is meant to address this, but it only works in bash currently.

michaek avatar Oct 15 '15 11:10 michaek

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

jdfreder avatar Oct 15 '15 14:10 jdfreder