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

Should be named git-jk #1

Open
bouk opened this issue May 26, 2014 · 6 comments
Open

Should be named git-jk #1

bouk opened this issue May 26, 2014 · 6 comments

Comments

@bouk
Copy link

bouk commented May 26, 2014

That way you can do git jk, an example of a project taking advantage of this is https://github.com/aanand/git-up

@honkfestival
Copy link

👍

@mapmeld
Copy link
Owner

mapmeld commented May 26, 2014

I'm looking at this now but could use some help. The node script can't run history itself, because it opens in a child process without any history of prior commands.

So there needs to be an alias or other script feeding it the lines of recent history.

@bouk
Copy link
Author

bouk commented May 26, 2014

You can prepend the command with history -w to flush the history to ~/.bash_history and then you can use a callback to get the data from that file

@mapmeld
Copy link
Owner

mapmeld commented May 26, 2014

I think there still has to be some use of alias then, to get history -w from the right process. And alias git-jk goes to git-jk. There's alias git.jk but then it only allows git commands.

Admittedly it'd help if this were a bash/shell script instead

@bf4
Copy link

bf4 commented Jun 3, 2014

I was surprised to see you're not using the reflog

@thorsummoner
Copy link

👍

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

5 participants