Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gr ignores aliases set in the current context #28

Open
jdfreder opened this issue May 29, 2015 · 2 comments
Open

gr ignores aliases set in the current context #28

jdfreder opened this issue May 29, 2015 · 2 comments

Comments

@jdfreder
Copy link

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.

@michaek
Copy link
Contributor

michaek commented Oct 15, 2015

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

@jdfreder
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants