(bash) add a bash fn to connect to bluetooth by label
This commit is contained in:
parent
53ff7be606
commit
ff9f18e704
1 changed files with 5 additions and 0 deletions
|
|
@ -333,3 +333,8 @@ export BAT_THEME="ansi"
|
|||
|
||||
# walk editor
|
||||
export EDITOR=vim
|
||||
|
||||
bc() {
|
||||
mac=$(bluetoothctl devices | rg "$1" | awk '{print $2}')
|
||||
bluetoothctl connect $mac
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue