software engineer. former new yorker — current chicagoan

Getting GPG git signing working with Fish Shell

@zackkitzmiller 2016-10-29 16:04

gpg.fish

gpg-agent --daemon --enable-ssh-support --write-env-file $HOME/.gpg-agent-info

if test -e \"$HOME/.gpg-agent-info\"
     set arrayName (cat \"$HOME/.gpg-agent-info\")
     for line in $arrayName
         set environment_var (echo $line | cut -d= -f1)
         set environment_val (echo $line | cut -d= -f2)
         set -x $environment_var $environment_val
    end
end

set -x GPG_TTY (tty)