diff options
| author | Marc Vertes <mvertes@free.fr> | 2020-02-16 21:15:09 +0100 |
|---|---|---|
| committer | Marc Vertes <mvertes@free.fr> | 2020-02-16 21:15:09 +0100 |
| commit | 47c5e607745ded7604305d11a60cf547ab5b7ed6 (patch) | |
| tree | 808e1652a50e5d117ffe776b470c34cd9022332d /.bashrc | |
| parent | 42737851fb9343a1d49ad1cce7ea1a2a0a9fdd2b (diff) | |
feat: conditional load of fzf completion & key bindings
Diffstat (limited to '.bashrc')
| -rw-r--r-- | .bashrc | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |
