mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
Fixes #2496: Test for a running ssh-agent at 27385. Much better.
This commit is contained in:
parent
ec37c05cb3
commit
9d82819440
1 changed files with 2 additions and 2 deletions
|
|
@ -26,8 +26,8 @@ if ! gpg-connect-agent --quiet /bye > /dev/null 2> /dev/null; then
|
|||
|
||||
# check again if another agent is running using the newly sourced settings
|
||||
if ! gpg-connect-agent --quiet /bye > /dev/null 2> /dev/null; then
|
||||
# check for existing ssh-agent
|
||||
if ssh-add -l > /dev/null 2> /dev/null; then
|
||||
# check for existing ssh-agent
|
||||
if [[ $(kill -0 $SSH_AGENT_PID) != '0' ]]; then
|
||||
# ssh-agent running, start gpg-agent without ssh support
|
||||
start_agent_nossh;
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue