summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2020-02-16 21:15:09 +0100
committerMarc Vertes <mvertes@free.fr>2020-02-16 21:15:09 +0100
commit47c5e607745ded7604305d11a60cf547ab5b7ed6 (patch)
tree808e1652a50e5d117ffe776b470c34cd9022332d
parent42737851fb9343a1d49ad1cce7ea1a2a0a9fdd2b (diff)
feat: conditional load of fzf completion & key bindings
-rw-r--r--.bashrc6
1 files changed, 3 insertions, 3 deletions
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