From f80ded946e6d4f1858ec130ebaef4d357fc68c24 Mon Sep 17 00:00:00 2001
From: Oliver Davies <oliver@oliverdavies.uk>
Date: Tue, 16 Nov 2021 11:30:55 +0000
Subject: [PATCH] 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
---
 zsh/.zsh/configs/fzf.zsh | 2 ++
 1 file changed, 2 insertions(+)
 create mode 100644 zsh/.zsh/configs/fzf.zsh

diff --git a/zsh/.zsh/configs/fzf.zsh b/zsh/.zsh/configs/fzf.zsh
new file mode 100644
index 00000000..6b5afa9b
--- /dev/null
+++ b/zsh/.zsh/configs/fzf.zsh
@@ -0,0 +1,2 @@
+# Include keybindings for fzf.
+. /usr/share/doc/fzf/examples/key-bindings.zsh