Skip to content

mptre/pick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

caae959 · May 17, 2023
Jan 2, 2022
May 17, 2023
May 7, 2020
Sep 17, 2021
Oct 19, 2016
Jan 1, 2022
Feb 24, 2019
May 17, 2023
May 17, 2023
May 17, 2023
Apr 27, 2020
Apr 27, 2020
Apr 27, 2020
Jan 13, 2021
Dec 31, 2019
May 17, 2023
May 17, 2023
Feb 27, 2015

Repository files navigation

pick

pick(1) usage

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

Arch Linux

yay -S pick

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 pick

Gentoo

Package is available from the official repo.

emerge pick

Fedora Linux

Package is available from the official repo.

dnf install pick

RHEL/CentOS

If you are running RHEL, CentOS, Fedora 31-33, or if you are on ARM/aarch64 architecture, you can find appropriate RPMs on the RPM project releases page.

For more information or to contribute to the RPM build, see the RPM project page.

Void Linux

Package is available from the official repo.

xbps-install pick

Mac OS X via Homebrew

brew install pick

Mac OS X via MacPorts

sudo port install pick

FreeBSD via Ports

cd /usr/ports/sysutils/pick
make install clean

FreeBSD via pkgng

pkg install pick

NetBSD via pkgsrc

pkg_add pick

OpenBSD

pkg_add pick

From source

./configure
make install

Copyright

Copyright (c) 2014-2023 Calle Erlandsson, Anton Lindqvist & thoughtbot.