(bash) add a bash fn to connect to bluetooth by label

This commit is contained in:
jc 2024-08-17 18:25:45 -04:00
commit ff9f18e704

View file

@ -333,3 +333,8 @@ export BAT_THEME="ansi"
# walk editor # walk editor
export EDITOR=vim export EDITOR=vim
bc() {
mac=$(bluetoothctl devices | rg "$1" | awk '{print $2}')
bluetoothctl connect $mac
}