From ff9f18e7045535e0a0498ec862d42e208139048e Mon Sep 17 00:00:00 2001 From: jc <46619361+juancwu@users.noreply.github.com> Date: Sat, 17 Aug 2024 18:25:45 -0400 Subject: [PATCH] (bash) add a bash fn to connect to bluetooth by label --- bash/.bashrc.arch | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bash/.bashrc.arch b/bash/.bashrc.arch index 5acd57c..5a7ac23 100644 --- a/bash/.bashrc.arch +++ b/bash/.bashrc.arch @@ -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 +}