Skip to content

Instantly share code, notes, and snippets.

@shokinn
Last active June 18, 2020 21:13
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shokinn/345e4d0949054ce2862758ed791b279a to your computer and use it in GitHub Desktop.
Save shokinn/345e4d0949054ce2862758ed791b279a to your computer and use it in GitHub Desktop.
WSL - Use KeePass KeeAgent for SSH Keys; Use external X11
## Just source this file in your .$SHELLrc
# Import SSH-Keys from KeePass KeeAgent
# Enable msysgit socken in KeeAgent!
if [[ -z $SSH_AUTH_SOCK ]]; then
export SSH_AUTH_SOCK="/tmp/.ssh-auth-sock"
fi
if [[ ! -f /tmp/msysgit2unix-socket.pid ]]; then
~/bin/msysgit2unix-socket.py /mnt/c/Users/$USER/keeagent.sock:$SSH_AUTH_SOCK
fi
# Export Display (XServer is MobaXterm)
if [[ -z $DISPLAY ]]; then
export DISPLAY=localhost:0.0
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment