owenrusk.dev

dotfiles

shell, editor, ssh.

git clone https://owenrusk.dev/dotfiles.git

commit f4f8c58356483f87c94c67b1d2ca18c153d7ce08
parent 93c8310c8bbfbc330d5ff08bc3fde2bac7398653
author Owen Rusk <owen@papermothgames.com>
date   2025-09-12 14:00:45 -0500
zsh: fzf on ctrl-r if it's installed
zsh/zshrc+5-0
diff --git a/zsh/zshrc b/zsh/zshrc
index 15a6562..32c7673 100644
--- a/zsh/zshrc
+++ b/zsh/zshrc
@@ -37,4 +37,9 @@ dots=${${(%):-%x}:A:h}
 source $dots/aliases.zsh
 source $dots/functions.zsh
 
+# fzf on ctrl-r, if this machine has it
+for f in /usr/share/fzf/key-bindings.zsh /usr/share/doc/fzf/examples/key-bindings.zsh; do
+    [[ -r $f ]] && { source $f; break }
+done
+
 [[ -r ~/.zshrc.local ]] && source ~/.zshrc.local