Skip to content

Instantly share code, notes, and snippets.

@shokinn
Created February 18, 2019 13:35
Show Gist options
  • Save shokinn/34e2ab7754f9229b79ad340d934f2b90 to your computer and use it in GitHub Desktop.
Save shokinn/34e2ab7754f9229b79ad340d934f2b90 to your computer and use it in GitHub Desktop.
start_keepass_agent.sh
#!/bin/sh
export KEEAGENT_SOCK="/mnt/c/Users/philip/keeagent.sock"
ssh_auth_tmpdir=`mktemp --tmpdir --directory keeagent-ssh.XXXXXXXXXX`
export SSH_AUTH_SOCK="${ssh_auth_tmpdir}/agent.$$"
PIDFILE="${ssh_auth_tmpdir}/pid.$$"
python3 ~/bin/msysgit2unix-socket.py --pidfile $PIDFILE $KEEAGENT_SOCK:$SSH_AUTH_SOCK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment