zsh で fzf を使うようにしたい
主に history でしか使わないが、勝手に他の command にも fzf が使われると嬉しい。
prezto を使ってみている
unixorn/fzf-zsh-plugin: ZSH plugin to enable fzf searches of a lot more stuff - docker, tmux, homebrew and more. を使ってみる
更新頻度や機能面でこれが良さそう
fzf-zsh-plugin を prezto に external module として読み込ませれば良さそう
sorin-ionescu/prezto: The configuration framework for Zsh
$ cd .zprezto
$ mkdir contrib
$ git submodule add https://github.com/unixorn/fzf-zsh-plugin contrib/fzf-zsh-plugin
contrib directory is ignored
submodule で管理する方法は別途検討する
$ git clone https://github.com/unixorn/fzf-zsh-plugin contrib/fzf-zsh-plugin
code:shell
$HOME/.fzf.zsh:source:13: no such file or directory: $HOME/.fzf/shell/key-bindings.zsh
https://github.com/unixorn/fzf-zsh-plugin/issues/52#issuecomment-1022042758
homebrew などでグルーバルに fzf がインストールされているとこうなってしまうみたい?
.zshrc で export FZF_PATH=/opt/homebrew/opt/fzf した
以下エラーが一度でるが、fzf.zsh が作られるので、以降は出ない
code:shll
Can't find a fzf configuration file at /opt/homebrew/opt/fzf/fzf.zsh, creating a default one
これで様子見る