gitjk icon indicating copy to clipboard operation
gitjk copied to clipboard

Should be named git-jk

Open bouk opened this issue 10 years ago • 6 comments

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

bouk avatar May 26 '14 20:05 bouk

:+1:

honkfestival avatar May 26 '14 20:05 honkfestival

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.

mapmeld avatar May 26 '14 20:05 mapmeld

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

bouk avatar May 26 '14 20:05 bouk

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

mapmeld avatar May 26 '14 20:05 mapmeld

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

bf4 avatar Jun 03 '14 20:06 bf4

:+1:

thorsummoner avatar Mar 09 '15 19:03 thorsummoner