Hacker News new | ask | show | jobs
by cdubzzz 2052 days ago
I asked because none of the posted permutations offer the same feature set. Specifically, the nice thing about this utility (and reason for the dependencies) is interactive adding and selecting of identities. If this can replicated in bash, I am legitimately interested in seeing it, 20 lines or not.
1 comments

Implement the `git identity` portion listed earlier with a `identity-list` utilizing `git config --get-regexp`. If you need interactivity you can tie it together with fzf and some awk.
So, not a 20 line bash script and at least two big dependencies. Sounds a lot like what you were poking fun at.
> at least two big dependencies

Awk (a fraction of busybox’s 2.1 MBs) is a “big dependency”‽ Or maybe you’re saying git is‽

Edit: quote

Haha ok ok. Awk as a “big” dependency is hyperbole (:

I really am interested in what it would take to pull this off with bash. I may try it myself...

fzf is not a standard tool.
Well no. I don't need multiple versions of the same library to do this, neither do i need the cache engine of some v8 browser either.