fzf
#bash #zsh
junegunn/fzf: A command-line fuzzy finder
いろんなもののfuzzy searchができる
ctrl+rのコマンド履歴とか、kill -9のタブ補完とか。候補をリストで表示してくれるので標準のctrl+rより間違えにくい
インストール
~/.fzf/installのあと、[ -f ~/.fzf.bash ] && source ~/.fzf.bashあるいは[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
CTRL-r nor working in ZSH · Issue #1304 · junegunn/fzf
ctrl+rで重複を表示しない
Duplicates in history search and auto-Enter upon selections · Issue #1309 · junegunn/fzf
unknown option: --scheme=historyと出るときはfzfのバージョンが低い。間違えてaptで入れるとそうなる。
powershellの場合はkelleyma49/PSFzf: A PowerShell wrapper around the fuzzy finder fzfが簡単だった