Skip to content

Commit

Permalink
Merge pull request #293 from neiromaster/main
Browse files Browse the repository at this point in the history
Update ssh-agent setup for 1Password in zshrc
  • Loading branch information
unixorn committed Apr 17, 2024
2 parents 49f6f48 + deeae41 commit a20ce88
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions zsh/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,10 @@ onepassword-agent-check() {
}

load-our-ssh-keys() {
onepassword-agent-check
# setup ssh-agent for 1password only if it's installed
if can_haz op; then
onepassword-agent-check
fi
# If keychain is installed let it take care of ssh-agent, else do it manually
if can_haz keychain; then
eval `keychain -q --eval`
Expand Down Expand Up @@ -968,4 +971,4 @@ function zqs() {

if [[ -f ~/.zqs-zprof-enabled ]]; then
zprof
fi
fi

0 comments on commit a20ce88

Please sign in to comment.