Skip to content

Commit

Permalink
Cache SSL password between sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
turnspike committed Aug 4, 2022
1 parent 813c53a commit ebe0ebf
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions zsh/environment.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ eval "$(rbenv init - zsh)"
if [ -f ~/.ssh/id_rsa ]; then
aw_msg "loading ~/.ssh/id_rsa"
export APPLE_SSH_ADD_BEHAVIOR="macos" #"openssh" # or "macos"
eval "$(ssh-agent)"
ssh-add ~/.ssh/id_rsa
#ssh-add -l | grep -q `ssh-keygen -lf ~/.ssh/id_rsa | awk '{print $2}'` || ssh-add ~/.ssh/id_rsa
# eval "$(ssh-agent)"
#ssh-add ~/.ssh/id_rsa
# ssh-add -l | grep -q `ssh-keygen -lf /.ssh/id_rsa | awk '{print $2}'` || ssh-add ~/.ssh/id_rsa
# ssh-add -l | grep '/.ssh/id_rsa' || ssh-add ~/.ssh/id_rsa
ssh-add --apple-use-keychain ~/.ssh/id_rsa
fi

0 comments on commit ebe0ebf

Please sign in to comment.