bash_aliases: in cygwin, always set SSH_AUTH_SOCK

This commit is contained in:
Josh Holtrop 2014-04-14 08:31:50 -04:00
parent ab87b07e83
commit c6d7e1caac

View File

@ -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/:*$//')" 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 function ssh_agent_start
{ {
# cygwin ssh-agent support, from # cygwin ssh-agent support, from
# http://www.webweavertech.com/ovidiu/weblog/archives/000326.html # http://www.webweavertech.com/ovidiu/weblog/archives/000326.html
export SSH_AUTH_SOCK=/tmp/.ssh_socket
ssh-add -l >/dev/null 2>&1 ssh-add -l >/dev/null 2>&1
if [ $? = 2 ]; then if [ $? = 2 ]; then