Fzf: FZF How To Install Keybindings

Created on 11 Feb 2020  路  3Comments  路  Source: junegunn/fzf

  • [x] I have read through the manual page (man fzf)
  • [x] I have the latest version of fzf
  • [x] I have searched through the existing issues

Info

  • OS

    • [x] Linux

    • [ ] Mac OS X

    • [ ] Windows

    • [ ] Etc.

  • Shell

    • [ ] bash

    • [x] zsh

    • [ ] fish

Problem / Steps to reproduce

I just did sudo apt-get install fzf. But how do I enable keybinding so I can do ctrl+r to bring up fzf search? I know when I git clone there is an install script. I cannot find where the install.sh file is or is there another way?

question

Most helpful comment

THIS

There are several files containing keybindings for different shells, find the appropriate one and source it. For example, to enable the bindings for bash:
$ dpkg -L fzf | grep bindings /usr/share/doc/fzf/examples/fish_user_key_bindings.fish /usr/share/doc/fzf/examples/key-bindings.bash /usr/share/doc/fzf/examples/key-bindings.fish /usr/share/doc/fzf/examples/key-bindings.zsh /usr/share/fish/vendor_functions.d/fzf_key_bindings.fish $ . /usr/share/doc/fzf/examples/key-bindings.bash
Stick . /usr/share/doc/fzf/examples/key-bindings.bash in ~/.bashrc to make it permanent.

ought to be in the README

All 3 comments

There are several files containing keybindings for different shells, find the appropriate one and source it. For example, to enable the bindings for bash:

$ dpkg -L fzf | grep bindings
/usr/share/doc/fzf/examples/fish_user_key_bindings.fish
/usr/share/doc/fzf/examples/key-bindings.bash
/usr/share/doc/fzf/examples/key-bindings.fish
/usr/share/doc/fzf/examples/key-bindings.zsh
/usr/share/fish/vendor_functions.d/fzf_key_bindings.fish
$ . /usr/share/doc/fzf/examples/key-bindings.bash

Stick . /usr/share/doc/fzf/examples/key-bindings.bash in ~/.bashrc to make it permanent.

Thank you. This make sense.

THIS

There are several files containing keybindings for different shells, find the appropriate one and source it. For example, to enable the bindings for bash:
$ dpkg -L fzf | grep bindings /usr/share/doc/fzf/examples/fish_user_key_bindings.fish /usr/share/doc/fzf/examples/key-bindings.bash /usr/share/doc/fzf/examples/key-bindings.fish /usr/share/doc/fzf/examples/key-bindings.zsh /usr/share/fish/vendor_functions.d/fzf_key_bindings.fish $ . /usr/share/doc/fzf/examples/key-bindings.bash
Stick . /usr/share/doc/fzf/examples/key-bindings.bash in ~/.bashrc to make it permanent.

ought to be in the README

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lbeier picture lbeier  路  3Comments

nordlow picture nordlow  路  3Comments

aleclarson picture aleclarson  路  3Comments

fenuks picture fenuks  路  3Comments

alistaircolling picture alistaircolling  路  3Comments