fix: Correction activation ble.sh

This commit is contained in:
Xavier Logerais 2024-06-21 16:48:06 +00:00
parent 640df9986c
commit f651195b22
3 changed files with 9 additions and 3 deletions

6
bashrc
View File

@ -14,6 +14,9 @@ fi
# Source custom libs # Source custom libs
if [ -d "$HOME"/.bash/libs ]; then for lib in "$HOME"/.bash/libs/*.bash; do source "$lib"; done; fi if [ -d "$HOME"/.bash/libs ]; then for lib in "$HOME"/.bash/libs/*.bash; do source "$lib"; done; fi
# Early customization
if [ -d "$HOME"/.bash/rc.before.d ]; then for file in "$HOME"/.bash/rc.before.d/*; do source "$file"; done; fi
# Source rc.d/* # Source rc.d/*
if [ -d "$HOME"/.bash/rc.d ]; then for file in "$HOME"/.bash/rc.d/*; do source "$file"; done; fi if [ -d "$HOME"/.bash/rc.d ]; then for file in "$HOME"/.bash/rc.d/*; do source "$file"; done; fi
@ -30,3 +33,6 @@ if [ -f "$HOME"/.bash_completion ]; then source "$HOME"/.bash_completion; fi
if [ -f "$HOME"/.bash/completion ]; then source "$HOME"/.bash/completion; fi if [ -f "$HOME"/.bash/completion ]; then source "$HOME"/.bash/completion; fi
if [ -d "$HOME"/.bash/completion ]; then for file in "$HOME"/.bash/completion/*; do source "$file"; done; fi if [ -d "$HOME"/.bash/completion ]; then for file in "$HOME"/.bash/completion/*; do source "$file"; done; fi
if [ -d "$HOME"/.bash/completion.d ]; then for file in "$HOME"/.bash/completion.d/*; do source "$file"; done; fi if [ -d "$HOME"/.bash/completion.d ]; then for file in "$HOME"/.bash/completion.d/*; do source "$file"; done; fi
# Late customization
if [ -d "$HOME"/.bash/rc.after.d ]; then for file in "$HOME"/.bash/rc.after.d/*; do source "$file"; done; fi

3
rc.after.d/blesh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
[[ ${BLE_VERSION-} ]] && ble-attach

View File

@ -3,7 +3,4 @@
# ble.sh () installed from nix # ble.sh () installed from nix
if (command -v blesh-share &>/dev/null); then if (command -v blesh-share &>/dev/null); then
source "$(blesh-share)"/ble.sh --attach=none # does not work currently source "$(blesh-share)"/ble.sh --attach=none # does not work currently
# ...
[[ ${BLE_VERSION-} ]] && ble-attach
# source "$(blesh-share)"/ble.sh
fi fi