From 446babca90d068b93b81e1c7bbcf524dcee74d38 Mon Sep 17 00:00:00 2001 From: David Young Date: Sat, 2 May 2026 06:01:02 -0600 Subject: [PATCH] bitwarden agent configure --- bitwarden.sh | 10 ++++++++++ coreupdate | 5 ++++- install.sh | 4 ++++ 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 bitwarden.sh diff --git a/bitwarden.sh b/bitwarden.sh new file mode 100644 index 0000000..cfe9903 --- /dev/null +++ b/bitwarden.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +LINE="export SSH_AUTH_SOCK=/home/$USER/.var/app/com.bitwarden.desktop/data/.bitwarden-ssh-agent.sock" + +if grep -qF "$LINE" ~/.bashrc; then + echo "Bitwarden SSH agent already configured in .bashrc" +else + echo "$LINE" >> ~/.bashrc + echo "Bitwarden SSH agent added to .bashrc" +fi diff --git a/coreupdate b/coreupdate index c3a9691..fecac68 100755 --- a/coreupdate +++ b/coreupdate @@ -68,4 +68,7 @@ install_packages "${FONTS[@]}" echo "Checking for new flatpaks..." . install-flatpaks.sh -echo "Done. You probably want to reboot your system..." +echo "Configuring Bitwarden SSH agent..." +. bitwarden.sh + +echo "Done." diff --git a/install.sh b/install.sh index b180c42..e4870e5 100755 --- a/install.sh +++ b/install.sh @@ -147,6 +147,10 @@ cd ~/.local/share/coredesktop echo "Installing Kickstart Neovim..." . install-kickstart-nvim.sh +# Configure Bitwarden SSH agent +echo "Configuring Bitwarden SSH agent..." +. bitwarden.sh + # Add the current user to the docker group and start the Docker daemon sudo usermod -aG docker $USER newgrp docker