From 30d0da96dc6349b17a4299048249c6d030747e20 Mon Sep 17 00:00:00 2001 From: Scott Carroll Date: Sat, 23 Aug 2025 16:37:44 +0100 Subject: [PATCH] Include dotfiles in fzf completion --- .../.bash-profile.d/00-fzf-include-dotfiles-exclude-git.bash | 2 ++ bashprofile/.bashrc | 1 + 2 files changed, 3 insertions(+) create mode 100644 bashprofile/.bash-profile.d/00-fzf-include-dotfiles-exclude-git.bash diff --git a/bashprofile/.bash-profile.d/00-fzf-include-dotfiles-exclude-git.bash b/bashprofile/.bash-profile.d/00-fzf-include-dotfiles-exclude-git.bash new file mode 100644 index 0000000..2f9cbb1 --- /dev/null +++ b/bashprofile/.bash-profile.d/00-fzf-include-dotfiles-exclude-git.bash @@ -0,0 +1,2 @@ +export FZF_DEFAULT_COMMAND="rg --files --follow --no-ignore-vcs --hidden -g '!{**/node_modules/*,**/.git/*}'" +export FZF_CTRL_T_COMMAND="rg --files --follow --no-ignore-vcs --hidden -g '!{**/node_modules/*,**/.git/*}'" diff --git a/bashprofile/.bashrc b/bashprofile/.bashrc index bf4268f..fbce86e 100644 --- a/bashprofile/.bashrc +++ b/bashprofile/.bashrc @@ -122,6 +122,7 @@ fi . "$HOME/.bash-profile.d/fzf-completion.bash" . "$HOME/.bash-profile.d/fzf-key-bindings.bash" +. "$HOME/.bash-profile.d/00-fzf-include-dotfiles-exclude-git.bash" eval "$("$HOME/.dotfiles/starship-$(uname -m)" init bash)"