diff --git a/clean_files.txt b/clean_files.txt index 420c6cc934..da7e41bcc5 100644 --- a/clean_files.txt +++ b/clean_files.txt @@ -84,6 +84,7 @@ plugins/available/alias-completion.plugin.bash plugins/available/autojump.plugin.bash plugins/available/base.plugin.bash plugins/available/basher.plugin.bash +plugins/available/blesh.plugin.bash plugins/available/cmd-returned-notify.plugin.bash plugins/available/direnv.plugin.bash plugins/available/docker-machine.plugin.bash diff --git a/plugins/available/blesh.plugin.bash b/plugins/available/blesh.plugin.bash new file mode 100644 index 0000000000..14d6b21fa5 --- /dev/null +++ b/plugins/available/blesh.plugin.bash @@ -0,0 +1,17 @@ +# shellcheck shell=bash +cite about-plugin +about-plugin 'load ble.sh, the Bash line editor!' + +if [[ ${BLE_VERSION-} ]]; then + _log_warning "ble.sh is already loaded!" + return +fi + +ble_path=${XDG_DATA_HOME:-$HOME/.local/share}/blesh/ble.shsdf +if [[ -f $ble_path ]]; then + # shellcheck disable=1090 + source "$ble_path" +else + _log_error "Could not find ble.sh in $ble_path" + _log_error "Please follow installation instructions from https://github.com/akinomyoga/ble.sh" +fi