From e69f8b02ad482d6f366fd5a1ca208807c7886d5d Mon Sep 17 00:00:00 2001 From: Beppe Vanrolleghem Date: Sat, 1 Feb 2020 22:42:27 +0100 Subject: [PATCH] fzf --- .fzf.bash | 13 +++++++++++++ .fzf.zsh | 13 +++++++++++++ .gitignore | 2 +- 3 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 .fzf.bash create mode 100644 .fzf.zsh diff --git a/.fzf.bash b/.fzf.bash new file mode 100644 index 0000000..12bc62a --- /dev/null +++ b/.fzf.bash @@ -0,0 +1,13 @@ +# Setup fzf +# --------- +if [[ ! "$PATH" == */usr/local/opt/fzf/bin* ]]; then + export PATH="${PATH:+${PATH}:}/usr/local/opt/fzf/bin" +fi + +# Auto-completion +# --------------- +[[ $- == *i* ]] && source "/usr/local/opt/fzf/shell/completion.bash" 2> /dev/null + +# Key bindings +# ------------ +source "/usr/local/opt/fzf/shell/key-bindings.bash" diff --git a/.fzf.zsh b/.fzf.zsh new file mode 100644 index 0000000..bcae1b9 --- /dev/null +++ b/.fzf.zsh @@ -0,0 +1,13 @@ +# Setup fzf +# --------- +if [[ ! "$PATH" == */usr/local/opt/fzf/bin* ]]; then + export PATH="${PATH:+${PATH}:}/usr/local/opt/fzf/bin" +fi + +# Auto-completion +# --------------- +[[ $- == *i* ]] && source "/usr/local/opt/fzf/shell/completion.zsh" 2> /dev/null + +# Key bindings +# ------------ +source "/usr/local/opt/fzf/shell/key-bindings.zsh" diff --git a/.gitignore b/.gitignore index 01939eb..75a6ee2 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,4 @@ !.vimrc !.vim !.vim/* - +!.fzf*