Hacker News new | ask | show | jobs
by semi-extrinsic 3881 days ago
With zsh:

$ $(tool) search $(pattern)

res1

res2

res3

# press arrow up, home, r= (`, end, `)

$ r = ( `$(tool) search $(pattern)`)

$ tool install r[1] r[3]

1 comments

Or use a fuzzy matcher...peco and fzf (the go version) are my favorites, since they install with no dependencies on a runtime, but there are python/ruby options (fpp, selecta, percol) as well.