3 ms·
With zsh: $ $(tool) search $(pattern) res1 res2 res3 # press arrow up, home, r= (`, end, `) $ r = ( `$(tool) search $(pattern)`) $ tool install r[1] r[3]
by semi-extrinsic 11y 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]
- curun1r 11y agoOr 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.