From 49ee64f03069b349308ab656de7e92c4ee8e360c Mon Sep 17 00:00:00 2001 From: Dan Buch Date: Sun, 21 Jun 2026 10:05:39 -0400 Subject: [PATCH] More fzf stuff --- zshrc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/zshrc b/zshrc index b806cd2..457805f 100644 --- a/zshrc +++ b/zshrc @@ -139,7 +139,6 @@ if psql --version &>/dev/null; then fi unsetopt correct_all -bindkey '^R' history-incremental-search-backward __maybesource() { if [[ -f "${1}" ]]; then @@ -239,6 +238,12 @@ print(base64.b64encode(secrets.token_bytes(${nbytes} * 2)).decode(), end="") EOPYTHON } +if fzf --version &>/dev/null; then + source <(fzf --zsh) +else + bindkey '^R' history-incremental-search-backward +fi + __maybesource ~/.zshenv __maybesource ~/.cargo/env __maybesource ~/google-cloud-sdk/path.zsh.inc @@ -246,6 +251,7 @@ __maybesource ~/google-cloud-sdk/completion.zsh.inc __maybesource ~/.kiex/scripts/kiex __maybesource ~/.config/tabtab/__tabtab.zsh __maybesource ~/.sdkman/bin/sdkman-init.sh +__maybesource /etc/profile.d/fzf.zsh autoload -Uz compinit if [[ -n ~/.zcompdump(#qNmh-24) ]]; then