bash_aliases: in cygwin, always set SSH_AUTH_SOCK
This commit is contained in:
parent
ab87b07e83
commit
c6d7e1caac
@ -295,13 +295,13 @@ if [[ -e /bin/cygwin1.dll ]]; then
|
||||
|
||||
winpath="$(echo $PATH | sed -e 's/:/\n/g' | grep cygdrive | tr '\n' ':' | sed -e 's/:*$//')"
|
||||
|
||||
export SSH_AUTH_SOCK=/tmp/.ssh_socket
|
||||
|
||||
function ssh_agent_start
|
||||
{
|
||||
# cygwin ssh-agent support, from
|
||||
# http://www.webweavertech.com/ovidiu/weblog/archives/000326.html
|
||||
|
||||
export SSH_AUTH_SOCK=/tmp/.ssh_socket
|
||||
|
||||
ssh-add -l >/dev/null 2>&1
|
||||
|
||||
if [ $? = 2 ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user