diff --git a/script/bt b/script/bt new file mode 100755 index 0000000..9b96106 --- /dev/null +++ b/script/bt @@ -0,0 +1,13 @@ +case "$1" in + "connect" ) { + x=$(bluetoothctl devices | sk | sd '^Device ' '' | sd ' .+$' '') && { + bluetoothctl connect "$x" + } + };; + "disconnect" ) { + bluetoothctl disconnect + };; + * ) { + echo "unknown command" + };; +esac \ No newline at end of file diff --git a/shared/home/bash.nix b/shared/home/bash.nix index 204d218..791e975 100644 --- a/shared/home/bash.nix +++ b/shared/home/bash.nix @@ -60,6 +60,9 @@ in with lib; { ".yaml" = "${fd}/bin/fd -e yaml -e yml"; ".yml" = ".yaml"; } // cfg.extraAliases; + bashrcExtra = '' + export PATH=${../../script}:/home/riley/.nix-profile/bin:$PATH + ''; }; # Configure the prompt