feat: add keybindings for fzf in zsh

Add keybindings for fzf to run keybindings like CTRL-T, CTRL-R, and
ALT-C in zsh.

From https://github.com/junegunn/fzf:

> warning Key bindings (CTRL-T / CTRL-R / ALT-C) and fuzzy
auto-completion may not be enabled by default.

> Refer to the package documentation for more information. (e.g.
apt-cache show fzf)

Running `apt-cache show fzf` said:

> Refer /usr/share/doc/fzf/README.Debian for quick instructions on how
to add keybindings for Bash, Zsh, Fish to call fzf.

This in turn said to add this line to `~/.zshrc`, or in my case, a new
`fzf.zsh` file:

    source /usr/share/doc/fzf/examples/key-bindings.zsh
This commit is contained in:
Oliver Davies 2021-11-16 11:30:55 +00:00
parent daa92fa662
commit f80ded946e

2
zsh/.zsh/configs/fzf.zsh Normal file
View file

@ -0,0 +1,2 @@
# Include keybindings for fzf.
. /usr/share/doc/fzf/examples/key-bindings.zsh