File tree Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Expand file tree Collapse file tree 2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ _bash_it_ble_path=${XDG_DATA_HOME:-$HOME/.local/share}/blesh/ble.sh
11
11
if [[ -f $_bash_it_ble_path ]]; then
12
12
# shellcheck disable=1090
13
13
source " $_bash_it_ble_path " --attach=prompt
14
+ if _bash-it-component-item-is-enabled plugin fzf; then
15
+ ble-import integration/fzf-key-bindings
16
+ ble-import -d integration/fzf-completion
17
+ fi
14
18
else
15
19
_log_error " Could not find ble.sh in $_bash_it_ble_path "
16
20
_log_error " Please install using the following command:"
Original file line number Diff line number Diff line change 5
5
cite about-plugin
6
6
about-plugin ' load fzf, if you are using it'
7
7
8
- if [ -r ~ /.fzf.bash ]; then
9
- # shellcheck disable=SC1090
10
- source ~ /.fzf.bash
11
- elif [ -r " ${XDG_CONFIG_HOME:- $HOME / .config} " /fzf/fzf.bash ]; then
12
- # shellcheck disable=SC1091
13
- source " ${XDG_CONFIG_HOME:- $HOME / .config} " /fzf/fzf.bash
14
- fi
8
+ if ! _bash-it-component-item-is-enabled plugin blesh; then
9
+ if [ -r ~ /.fzf.bash ]; then
10
+ # shellcheck disable=SC1090
11
+ source ~ /.fzf.bash
12
+ elif [ -r " ${XDG_CONFIG_HOME:- $HOME / .config} " /fzf/fzf.bash ]; then
13
+ # shellcheck disable=SC1091
14
+ source " ${XDG_CONFIG_HOME:- $HOME / .config} " /fzf/fzf.bash
15
+ fi
16
+ fi # only sources the keybindings and integration if blesh is not integrated already
15
17
16
18
# No need to continue if the command is not present
17
19
_command_exists fzf || return
You can’t perform that action at this time.
0 commit comments