mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-25 12:49:26 +01:00
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:
parent
49be36c9a6
commit
e4da11776a
5
bashrc
5
bashrc
@ -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
5
zshrc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user