Created
February 12, 2019 14:39
-
-
Save timoteoramos/37ade37077d224d4abd2e0c8eb17c994 to your computer and use it in GitHub Desktop.
Pageant Helper
This file contains hidden or 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
#!/bin/sh | |
AGENT=/mnt/c/tools/weasel-pageant/weasel-pageant | |
PROFILE=~/.cache/.ssh-agent | |
mkdir -p "$(dirname "$PROFILE")" && touch $PROFILE | |
source $PROFILE &> /dev/null | |
if [ ! -e "$SSH_AUTH_SOCK" ] | |
then | |
$AGENT > $PROFILE | |
source $PROFILE &> /dev/null | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment