From 3b36d3429abacf87aced63f6aec63c93b8ab4969 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Mon, 19 Aug 2019 08:46:46 +0100 Subject: [PATCH] Adds fzf config --- shells/zsh/oh-my-zsh-custom/fzf.zsh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 shells/zsh/oh-my-zsh-custom/fzf.zsh diff --git a/shells/zsh/oh-my-zsh-custom/fzf.zsh b/shells/zsh/oh-my-zsh-custom/fzf.zsh new file mode 100644 index 00000000..edb9cd82 --- /dev/null +++ b/shells/zsh/oh-my-zsh-custom/fzf.zsh @@ -0,0 +1,8 @@ +# this rg command will get a list of files that are not in gitignore or similar +export FZF_DEFAULT_COMMAND="rg --files" +# this is the argument completeion optionm, use the same command +export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND" +if [ -e /usr/share/fzf/key-bindings.zsh ]; then + source /usr/share/fzf/key-bindings.zsh + source /usr/share/fzf/completion.zsh +fi