fix: set default ssh sock based on what is available instead of forcing 1password locally
Signed-off-by: Menno van Leeuwen <menno@vleeuwen.me>
This commit is contained in:
5
.bashrc
5
.bashrc
@@ -22,6 +22,11 @@ if [[ "$(uname -a)" == *"microsoft-standard-WSL2"* ]]; then
|
|||||||
alias winget='winget.exe'
|
alias winget='winget.exe'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Set SSH_AUTH_SOCK to ~/.1password/agent.sock, but only if we don't already have a SSH_AUTH_SOCK
|
||||||
|
if [ -z "$SSH_AUTH_SOCK" ]; then
|
||||||
|
export SSH_AUTH_SOCK=~/.1password/agent.sock
|
||||||
|
fi
|
||||||
|
|
||||||
# Docker Compose Alias (Mostly for old shell scripts)
|
# Docker Compose Alias (Mostly for old shell scripts)
|
||||||
alias docker-compose='docker compose'
|
alias docker-compose='docker compose'
|
||||||
|
|
||||||
|
@@ -1,5 +1,4 @@
|
|||||||
Host *
|
Host *
|
||||||
IdentityAgent ~/.1password/agent.sock
|
|
||||||
AddKeysToAgent yes
|
AddKeysToAgent yes
|
||||||
ForwardAgent yes
|
ForwardAgent yes
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user