Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
This is a Python3 clone of François Fleuret's excellent selector tool.
Just type some characters and see which entries match your words.
You can search for whole sentences by prefixing your search with a double quote.
Use up and down arrows to navigate the list.
Escape/Backspace on the result list returns to the search input.
Escape on the search input closes selecta.
Press Enter to copy the selected entry to the console.
CTRL+a toggles case sensitivity
CTRL+r toggles regex search
pip install selecta
Install the keyboard shortcut ALT+{key}:
selecta_add_keybinding {the alt key you want to use}
This will append one of the following lines to your ~/.bashrc/zshrc:
bind -x '"\C-[{key}":"\selecta --bash -y <(history)"'
bindkey -s "^[{key}" "selecta --zsh -y <(history)^M"
Delete your old keybinding from .bashrc/.zshrc and register the new version with:
selecta_add_keybinding
usage: selecta [-h] [-i] [-b] [-z] [-e] [-a] [-d] [-y] [--bash] [--zsh]
[infile]
positional arguments:
infile the file which lines you want to select eg. <(history)
optional arguments:
-h, --help show this help message and exit
-i, --reverse-order reverse the order of the lines
-b, --remove-bash-prefix
remove the numeric prefix from bash history
-z, --remove-zsh-prefix
remove the time prefix from zsh history
-e, --regexp start in regexp mode
-a, --case-sensitive start in case-sensitive mode
-d, --remove-duplicates
remove duplicated lines
-y, --show-matches highlight the part of each line which matches the
substrings or regexp
--bash standard for bash history search, same as -b -i -d
--zsh standard for zsh history search, same as -b -i -d
FAQs
Interactively select an entry from your bash/zsh history.
We found that selecta demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.