From 88d5d3f6bc983cbc56d8d24cc5792b21c4959c88 Mon Sep 17 00:00:00 2001 From: piecka Date: Tue, 8 Jul 2025 13:08:57 +0200 Subject: [PATCH] fixing bleshrc config and filling in fzf sources in it --- .bashrc | 4 +--- .blerc | 6 ++++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.bashrc b/.bashrc index 5536faa..31ca694 100644 --- a/.bashrc +++ b/.bashrc @@ -251,9 +251,7 @@ _init() { if command-exists fzf; then if $blesh; then - ble-import -d integration/fzf-completion - ble-import -d integration/fzf-key-bindings - ble-import -d integration/fzf-menu + return else eval "$(fzf --bash)" || { source-file "$HOME/.fzf/shell/completion.bash" diff --git a/.blerc b/.blerc index 2ef49b5..666ccd6 100644 --- a/.blerc +++ b/.blerc @@ -1,5 +1,10 @@ # -*- mode: sh; mode: sh-bash -*- +if command -v fzf >/dev/null; then + ble-import -d integration/fzf-completion + ble-import -d integration/fzf-key-bindings + ble-import -d integration/fzf-menu +fi ## This is a template for "~/.blerc". ## ## To use ble.sh in bash, please set up "~/.bashrc" as follows: @@ -1365,6 +1370,7 @@ function blerc/vim-load-hook { #bleopt vim_airline_symbol_branch=$'\uE0A0' #bleopt vim_airline_symbol_dirty=$'\u26A1' } + blehook/eval-after-load keymap_vi blerc/vim-load-hook ##-----------------------------------------------------------------------------