From 884231de2bf09187201883a7a5562fc6621fd953 Mon Sep 17 00:00:00 2001 From: Gabriel Soldani <1268700+gabrielsoldani@users.noreply.github.com> Date: Sun, 4 Aug 2024 20:05:35 -0300 Subject: [PATCH] fzf: Add `fzf` --- Brewfile | 1 + fzf/.config/bash/rc.d/40-fzf.bash | 4 ++++ fzf/.config/zsh/rc.d/40-fzf.zsh | 4 ++++ 3 files changed, 9 insertions(+) create mode 100644 fzf/.config/bash/rc.d/40-fzf.bash create mode 100644 fzf/.config/zsh/rc.d/40-fzf.zsh diff --git a/Brewfile b/Brewfile index dc52ea4..c3056e6 100644 --- a/Brewfile +++ b/Brewfile @@ -9,6 +9,7 @@ brew "bash" brew "bash-completion@2" brew "direnv" brew "ffmpeg" +brew "fzf" brew "gh" brew "git" brew "htop" diff --git a/fzf/.config/bash/rc.d/40-fzf.bash b/fzf/.config/bash/rc.d/40-fzf.bash new file mode 100644 index 0000000..d68bfd1 --- /dev/null +++ b/fzf/.config/bash/rc.d/40-fzf.bash @@ -0,0 +1,4 @@ +# shellcheck shell=bash + +# Set up fzf key bindings and fuzzy completion +eval "$(fzf --bash)" diff --git a/fzf/.config/zsh/rc.d/40-fzf.zsh b/fzf/.config/zsh/rc.d/40-fzf.zsh new file mode 100644 index 0000000..c45639a --- /dev/null +++ b/fzf/.config/zsh/rc.d/40-fzf.zsh @@ -0,0 +1,4 @@ +# shellcheck shell=sh + +# Set up fzf key bindings and fuzzy completion +source <(fzf --zsh)