bashrc & zshrc: ssh-add: use keyring with OS X.

Via https://help.github.com/articles/working-with-ssh-key-passphrases#platform-mac
This commit is contained in:
Mikaela Suomalainen 2014-05-08 19:31:00 +03:00
parent 49be36c9a6
commit e4da11776a
2 changed files with 8 additions and 2 deletions

5
bashrc
View File

@ -119,6 +119,7 @@ if [[ $UNAME = Darwin ]]; then
alias ls="ls -Gp"
alias ll="ls -alFHGp"
alias l="ls -CFGp"
alias ssh-add="\ssh-add -D && \ssh-add -K"
fi
# Add an "alert" alias for long running commands. Use like so:
@ -390,7 +391,9 @@ alias KILL="killall -KILL "
alias rsync-folder="rsync -h --progress -azvv "
# SSHGuard seems to prefer users to run this always when connecting with keys in ssh-agent...
alias ssh-add="\ssh-add -D && \ssh-add "
if [[ $UNAME != Darwin ]]; then
alias ssh-add="\ssh-add -D && \ssh-add "
fi
# Use GPG2 instead of GPG!
# alias gpg=gpg2 # MKAYSIGREP # MKAYSIGREPALIAS

5
zshrc
View File

@ -328,6 +328,7 @@ if [[ $UNAME = Darwin ]]; then
alias ls="ls -Gp"
alias ll="ls -alFHGp"
alias l="ls -CFGp"
alias ssh-add="\ssh-add -D && \ssh-add -K"
fi
# Add an "alert" alias for long running commands. Use like so:
@ -355,7 +356,9 @@ alias KILL="killall -KILL "
alias rsync-folder="rsync -h --progress -azvv "
# SSHGuard seems to prefer users to run this always when connecting with keys in ssh-agent...
alias ssh-add="\ssh-add -D && \ssh-add "
if [[ $UNAME != Darwin ]]; then
alias ssh-add="\ssh-add -D && \ssh-add "
fi
# Use GPG2 instead of GPG!
#alias gpg=gpg2 # MKAYSIGREP MKAYSIGREPALIAS