From 47c5e607745ded7604305d11a60cf547ab5b7ed6 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Sun, 16 Feb 2020 21:15:09 +0100 Subject: feat: conditional load of fzf completion & key bindings --- .bashrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '.bashrc') diff --git a/.bashrc b/.bashrc index 6f6c8be..2492b1f 100644 --- a/.bashrc +++ b/.bashrc @@ -75,11 +75,11 @@ export -f wsd #PS1='[\u@\h \W]\$ ' +# fzf # Accomodate different base prefix on termux [ -d "$HOME/../usr" ] && base=.. -# fzf -. $base/usr/share/fzf/completion.bash -. $base/usr/share/fzf/key-bindings.bash +[ -f "$base/usr/share/fzf/completion.bash" ] && . "$base/usr/share/fzf/completion.bash" +[ -f "$base/usr/share/fzf/key-bindings.bash" ] && . "$base/usr/share/fzf/key-bindings.bash" unset base # Display git status in prompt -- cgit v1.2.3