From d28de23c5c9aa1088e97f1555cb4ddf039ac2733 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Tue, 28 Jan 2025 12:02:00 +0100 Subject: fix fzf --- .bashrc | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to '.bashrc') diff --git a/.bashrc b/.bashrc index 85b53b4..55d4eb0 100644 --- a/.bashrc +++ b/.bashrc @@ -143,14 +143,7 @@ meteo() { #PS1='[\u@\h \W]\$ ' -# fzf -# Accomodate different base prefix on termux -#[ -d "$HOME/../usr" ] && base=.. -#[ -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 -#[ -f "/usr/share/fzf/completion.bash" ] && . "/usr/share/fzf/completion.bash" -#[ -f "/usr/share/fzf/key-bindings.bash" ] && . "/usr/share/fzf/key-bindings.bash" +eval "$(fzf --bash)" >/dev/null # Arch: display package to install for missing commands #[ -f '/usr/share/doc/pkgfile/command-not-found.bash' ] && . /usr/share/doc/pkgfile/command-not-found.bash @@ -167,5 +160,3 @@ meteo() { #bind -m vi-command ".":insert-last-argument #bind -m vi-command 'Control-l: clear-screen' #bind -m vi-insert 'Control-l: clear-screen' - -[ -f ~/.fzf.bash ] && source ~/.fzf.bash -- cgit v1.2.3