Skip to main content

Interactively select an entry from your bash/zsh history.

Project description

selecta - Interactively select an entry from your bash/zsh history.

This is a python clone of François Fleuret’s excellent selector tool.

Usage

$ selecta.py --bash -y <(history)

Keys

CTRL+i: toggle case sensitivity

CTRL+r: toggle REGEX search

Installation

create a symlink:

$ sudo ln -s selecta.py /usr/bin/selecta

Add this to your .bashrc to bind the command to ALT+e:

bind '"\C-[e":"\C-a\C-kselecta <(history)\C-m"'

–help output

usage: selecta [-h] [-i] [-b] [-z] [-e] [-a] [-d] [-y] [--bash] [--zsh]
               [infile]

positional arguments:
  infile

optional arguments:
  -h, --help            show this help message and exit
  -i, --revert-order
  -b, --remove-bash-prefix
  -z, --remove-zsh-prefix
  -e, --regexp
  -a, --case-sensitive
  -d, --remove-duplicates
  -y, --show-hits
  --bash
  --zsh

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

selecta-0.0.5.tar.gz (4.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page