Skip to content

Commit c3382c7

Browse files
authored
Merge pull request Bash-it#1884 from NoahGorny/add-blesh-plugin
plugins: Add ble.sh plugin
2 parents 07384bc + c360f0c commit c3382c7

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

clean_files.txt

+1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ plugins/available/alias-completion.plugin.bash
8484
plugins/available/autojump.plugin.bash
8585
plugins/available/base.plugin.bash
8686
plugins/available/basher.plugin.bash
87+
plugins/available/blesh.plugin.bash
8788
plugins/available/cmd-returned-notify.plugin.bash
8889
plugins/available/direnv.plugin.bash
8990
plugins/available/docker-machine.plugin.bash

plugins/available/blesh.plugin.bash

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# shellcheck shell=bash
2+
cite about-plugin
3+
about-plugin 'load ble.sh, the Bash line editor!'
4+
5+
if [[ ${BLE_VERSION-} ]]; then
6+
_log_warning "ble.sh is already loaded!"
7+
return
8+
fi
9+
10+
_bash_it_ble_path=${XDG_DATA_HOME:-$HOME/.local/share}/blesh/ble.sh
11+
if [[ -f $_bash_it_ble_path ]]; then
12+
# shellcheck disable=1090
13+
source "$_bash_it_ble_path"
14+
else
15+
_log_error "Could not find ble.sh in $_bash_it_ble_path"
16+
_log_error "Please install using the following command:"
17+
_log_error "git clone https://github.com/akinomyoga/ble.sh && make -C ble.sh install"
18+
fi
19+
unset _bash_it_ble_path

0 commit comments

Comments
 (0)