diff options
author | Mike Crute <mike@crute.us> | 2020-11-16 06:10:41 +0000 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2020-11-16 06:10:41 +0000 |
commit | b95fe58226e36dadd0602b0ddd35194b4ba02169 (patch) | |
tree | 1a22022f4cac0d9ff64c0b4b367f850bd5f26391 /.bashrc | |
parent | fb3ffdc539884cb862cf08538d669a26b1bc70b2 (diff) | |
download | dotfiles-b95fe58226e36dadd0602b0ddd35194b4ba02169.tar.bz2 dotfiles-b95fe58226e36dadd0602b0ddd35194b4ba02169.tar.xz dotfiles-b95fe58226e36dadd0602b0ddd35194b4ba02169.zip |
Fixing ssh agent check
Diffstat (limited to '.bashrc')
-rw-r--r-- | .bashrc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -584,7 +584,7 @@ func_export tm | |||
584 | # this ugly hack of a check function. | 584 | # this ugly hack of a check function. |
585 | function _ssh_agent_is_running | 585 | function _ssh_agent_is_running |
586 | { | 586 | { |
587 | output=$(ssh-add 2>&1) | 587 | output=$(ssh-add -l 2>&1) |
588 | [[ $? -ne 2 && ! "$output" =~ "communication with agent failed" ]] | 588 | [[ $? -ne 2 && ! "$output" =~ "communication with agent failed" ]] |
589 | } | 589 | } |
590 | 590 | ||