zprofile: Fix non-export of FZF_DEFAULT_NO_RG

I never really noticed but `$FZF_ALT_C_COMMAND` was never set as
`$fzf_default_no_rg` would be empty. Because the variable was not
exported, the X session would not have it in it's environment.
This commit is contained in:
2023-06-23 13:35:41 +02:00
parent 5d0616c34f
commit 2114987106
2 changed files with 9 additions and 8 deletions

View File

@@ -232,5 +232,5 @@ bindkey -M vicmd '^K' fzf-history-widget
FZF_CTRL_T_COMMAND="${FZF_DEFAULT_COMMAND} 2>/dev/null"
# Use the fallback default command when ripgrep is not installed but with
# directories instead of files.
FZF_ALT_C_COMMAND="${fzf_default_no_rg/-type f/-type d}"
FZF_ALT_C_COMMAND="${FZF_DEFAULT_COMMAND_NO_RG/-type f/-type d}"
comp-source "$ZDOTDIR/plugins/fzf/shell/key-bindings.zsh"