Skip to content

Instantly share code, notes, and snippets.

AndreasPK

  • Vienna, Austria
Block or report user

Report or block AndreasPK

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@gsomoza
gsomoza / .bashrc
Created Jan 17, 2013
SSH Agent in Windows (Git Bash / MinGW)
View .bashrc
#!bash.exe
export SSH_AUTH_SOCK=/tmp/.ssh-socket
echo ;
echo Starting connection with ssh-agent...
ssh-add -l 2>&1 >/dev/null
if [ $? = 2 ]; then
rm -f /tmp/.ssh-script /tmp/.ssh-agent-pid /tmp/.ssh-socket
# Exit status 2 means couldn't connect to ssh-agent; start one now
echo Creating new ssh-agent...
ssh-agent -a $SSH_AUTH_SOCK > /tmp/.ssh-script
You can’t perform that action at this time.