git-workflow icon indicating copy to clipboard operation
git-workflow copied to clipboard

Command `history | awk '$2 == "git" {print $1 " " $3}'` gets me a node "--no-pager"

Open hartwork opened this issue 6 years ago • 0 comments

Cool project!

I need --no-pager for some commands some time — e.g. git --no-pager branch --remotes --merged github-readwrite/master — and recommendation history | awk '$2 == "git" {print $1 " " $3}' > history.txt got me a node --no-pager in the graph, as a result.

So I used history | sed 's,--no-pager ,,' | awk '$2 == "git" {print $1 " " $3}' for a second iteration, instead. Maybe it's worth extending the recommend extraction command like that. What do you think?

Best, Sebastian

hartwork avatar Aug 11 '19 13:08 hartwork