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
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 |