mirror of
https://github.com/lloeki/dotfiles.git
synced 2025-12-06 07:24:39 +01:00
ssh keychain support
This commit is contained in:
parent
ef06ff6c8a
commit
d0b4e80578
1 changed files with 7 additions and 0 deletions
7
profile
7
profile
|
|
@ -40,3 +40,10 @@ GREP_OPTIONS='--color=auto'
|
|||
CLICOLOR=1;
|
||||
export GREP_OPTIONS CLICOLOR
|
||||
|
||||
# ssh keychain, if no agent set
|
||||
if [ -z "$SSH_AUTH_SOCK" ]; then
|
||||
if which keychain 2>&1 >/dev/null; then
|
||||
eval $(keychain --eval --agents ssh -Q --quiet id_rsa)
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue