diff options
Diffstat (limited to 'profile/ssh-agent.sh')
-rw-r--r-- | profile/ssh-agent.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/profile/ssh-agent.sh b/profile/ssh-agent.sh index 7afb7c6..95669d5 100644 --- a/profile/ssh-agent.sh +++ b/profile/ssh-agent.sh | |||
@@ -1,10 +1,10 @@ | |||
1 | # start the ssh-agent | 1 | # start the ssh-agent |
2 | 2 | ||
3 | # use keychain(1), if available | 3 | # use keychain(1), if available |
4 | if type keychain > /dev/null 2>&1; then | 4 | if type keychain >/dev/null 2>&1; then |
5 | # Save directory name in a variable (for ease of maintenance) | 5 | # Save directory name in a variable (for ease of maintenance) |
6 | export KEYCHAIN_HOME="$XDG_RUNTIME_DIR/keychain" | 6 | export KEYCHAIN_HOME="$XDG_RUNTIME_DIR/keychain" |
7 | eval $(keychain --eval --dir "$KEYCHAIN_HOME" --agents ssh 2>/dev/null) | 7 | eval $(keychain --eval --dir "$KEYCHAIN_HOME" --agents ssh 2>/dev/null) |
8 | else | 8 | else |
9 | eval $(ssh-agent -s) | 9 | eval $(ssh-agent -s) |
10 | fi | 10 | fi |