dotfiles

*nix config files
git clone git://git.pyratebeard.net/dotfiles.git
Log | Files | Refs | README

keychain.zsh (394B)


      1 # KEYCHAIN
      2 
      3 ## don't run if keychain not installed (i.e a server)
      4 if command -v keychain >/dev/null ; then
      5 	# ssh key dir
      6 	SSH_KEY_DIR="$HOME/.ssh"
      7 
      8 	GPG_TTY=$(tty)
      9 	export GPG_TTY
     10 
     11 	# funtoo keychain
     12 	eval $(keychain -q --agents gpg --nogui --eval 0xC7877C715113A16D)
     13 	if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ] ; then
     14 		export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
     15 	fi
     16 fi