Skip to content

Instantly share code, notes, and snippets.

@timoteoramos
Created February 12, 2019 14:39
Show Gist options
  • Save timoteoramos/37ade37077d224d4abd2e0c8eb17c994 to your computer and use it in GitHub Desktop.
Save timoteoramos/37ade37077d224d4abd2e0c8eb17c994 to your computer and use it in GitHub Desktop.
Pageant Helper
#!/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