gitjk
gitjk copied to clipboard
Should be named git-jk
That way you can do git jk
, an example of a project taking advantage of this is https://github.com/aanand/git-up
:+1:
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.
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
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
I was surprised to see you're not using the reflog
:+1: