
私はdebian 11(bullseye)にfzfをインストールしました。履歴検索を実行するためにCtrl-Rを入力すると、何も起こりません。私のMacではうまくいきます。 zshを使用しています。
更新:bindkey '^r' fzf-history-widget
.zshrcに追加しようとしましたが、「該当ウィジェットなし」エラーが発生しました。
fzf - バージョンレポート0.24(開発)
答え1
わかりました。で答えを見つけました。https://packages.debian.org/bullseye/fzfREADMEファイルを参照してください。
Bash
====
Append this line to ~/.bashrc to enable fzf keybindings for Bash:
source /usr/share/doc/fzf/examples/key-bindings.bash
Append this line to ~/.bashrc to enable fuzzy auto-completion for Bash:
source /usr/share/doc/fzf/examples/completion.bash
Zsh
===
Append this line to ~/.zshrc to enable fzf keybindings for Zsh:
source /usr/share/doc/fzf/examples/key-bindings.zsh
Append this line to ~/.zshrc to enable fuzzy auto-completion for Zsh:
source /usr/share/doc/fzf/examples/completion.zsh
Fish
====
Issue the following commands to enable fzf keybindings for Fish:
mkdir -p ~/.config/fish/functions/
echo fzf_key_bindings > ~/.config/fish/functions/fish_user_key_bindings.fish
Vim
===
The straightforward way to use fzf.vim is appending this line to your vimrc:
source /usr/share/doc/fzf/examples/fzf.vim
答え2
zinit
このプラグインには以下からアクセスすることもできます。oh-my-zsh
https://github.com/joshskidmore/zsh-fzf-history-search
答え3
これはこのスタック交換とは関係がないかもしれませんが、M1 Macでは次のkey-bindings.zsh
場所でファイルを見つけました/opt/homebrew/Cellar/fzf/0.36.0/shell/key-bindings.zsh
。
このファイルを私のファイルに追加.zshrc
したらCtrl。rfzf