Last active
June 18, 2020 21:13
-
-
Save shokinn/345e4d0949054ce2862758ed791b279a to your computer and use it in GitHub Desktop.
WSL - Use KeePass KeeAgent for SSH Keys; Use external X11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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