Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mptre/pick
A fuzzy search tool for the command-line
https://github.com/mptre/pick
c cli fuzzy-search pick vim
Last synced: 1 day ago
JSON representation
A fuzzy search tool for the command-line
- Host: GitHub
- URL: https://github.com/mptre/pick
- Owner: mptre
- License: mit
- Created: 2014-08-17T12:13:39.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-05-17T09:48:46.000Z (over 1 year ago)
- Last Synced: 2025-02-02T16:42:34.295Z (9 days ago)
- Topics: c, cli, fuzzy-search, pick, vim
- Language: C
- Homepage:
- Size: 946 KB
- Stars: 818
- Watchers: 26
- Forks: 42
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
- awesome-tools - pick - A fuzzy search tool for the command-line (Command Line / Dependency Management)
- my-awesome-github-stars - mptre/pick - A fuzzy search tool for the command-line (C)
README
# pick
![pick(1) usage](screencast.gif)
[pick(1)][pick]
reads a list of choices from `stdin` and outputs the selected choice to
`stdout`.
Therefore it is easily used both in pipelines and subshells:```sh
# 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)][pick] can also be used from within Vim,
see the
[pick.vim][pick-vim]
plugin.## Installation
### Arch Linux
```sh
yay -S pick
```### CRUX
Available in [`6c37/crux-ports`][crux].
### Debian and Ubuntu
A package for Pick is available As of [Debian 9][debian]
and [Ubuntu 16.04 LTS][ubuntu].```sh
apt-get install pick
```### Gentoo
Package is available from the [official repo][gentoo].
```sh
emerge pick
```### Fedora Linux
Package is available from the [official repo][fedora].
```sh
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](https://github.com/FreedomBen/pick-rpm/releases).For more information or to contribute to the RPM build, see the
[RPM project page](https://github.com/FreedomBen/pick-rpm).### Void Linux
Package is available from the [official repo][void].
```sh
xbps-install pick
```### Mac OS X via Homebrew
```sh
brew install pick
```### Mac OS X via MacPorts
```sh
sudo port install pick
```### FreeBSD via Ports
```sh
cd /usr/ports/sysutils/pick
make install clean
```### FreeBSD via pkgng
```sh
pkg install pick
```### NetBSD via pkgsrc
```sh
pkg_add pick
```### OpenBSD
```sh
pkg_add pick
```### From source
```sh
./configure
make install
```## Copyright
Copyright (c) 2014-2023 Calle Erlandsson, Anton Lindqvist & thoughtbot.
[crux]: https://github.com/6c37/crux-ports
[current]: https://github.com/mptre/pick/blob/master/CONTRIBUTING.md
[debian]: https://packages.debian.org/stable/misc/pick
[gentoo]: https://packages.gentoo.org/packages/sys-apps/pick
[pick-vim]: https://github.com/calleerlandsson/pick.vim
[pick]: https://www.basename.se/pick/
[release]: https://github.com/mptre/pick/releases/
[ubuntu]: https://packages.ubuntu.com/xenial/pick
[void]: https://github.com/void-linux/void-packages/blob/master/srcpkgs/pick/template
[fedora]: https://src.fedoraproject.org/rpms/pick