bitwarden agent configure

This commit is contained in:
2026-05-02 06:01:02 -06:00
parent fdddf90c3b
commit 446babca90
3 changed files with 18 additions and 1 deletions

10
bitwarden.sh Normal file
View File

@@ -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