Skip to content

Instantly share code, notes, and snippets.

View ben-axnick's full-sized avatar

Ben Axnick ben-axnick

View GitHub Profile
@ben-axnick
ben-axnick / .bash_profile
Created November 22, 2017 03:38 — forked from patrobinson/.bash_profile
Using yubikey 4c on Mac OS X (running Sierra)
GPG_ENV=$( gpg-agent --daemon 2>/dev/null )
if [ $? == 0 ]; then
eval $GPG_ENV
else
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
fi
export GPG_TTY=$(tty)
function copy-code() {
echo $1 |sed -e 's/[^ ]* //' |pbcopy