pick
pick(1)
reads a list of choices from stdin and outputs the selected choice to
stdout.
Therefore it is easily used both in pipelines and subshells:
# Select a file in the current directory to open using xdg-open(1):
$ find . -type f | pick | xargs xdg-open
# Select a command from the history to execute:
$ eval $(fc -ln 1 | pick)pick(1) can also be used from within Vim, see the pick.vim plugin.
Installation
CRUX
Available in 6c37/crux-ports.
Debian and Ubuntu
A package for Pick is available As of Debian 9 and Ubuntu 16.04 LTS.
apt-get install pickGentoo
Package is available from the official repo.
emerge pickVoid Linux
Package is available from the official repo.
xbps-install pickMac OS X via Homebrew
brew install pickMac OS X via MacPorts
sudo port install pickFreeBSD via Ports
cd /usr/ports/sysutils/pick
make install cleanFreeBSD via pkgng
pkg install pickNetBSD via pkgsrc
pkg_add pickOpenBSD
pkg_add pickFrom source
Download the latest release and follow the bundled instructions in
INSTALL.md.
If you want to try the latest unreleased version, follow the instructions in CONTRIBUTING.md.
Copyright
Copyright (c) 2017 Calle Erlandsson, Anton Lindqvist & thoughtbot.
