Using keychain instead of gpg-agent
This commit is contained in:
parent
d1835deb3a
commit
0c55eae12f
1 changed files with 9 additions and 8 deletions
17
zshrc
17
zshrc
|
|
@ -4,7 +4,6 @@
|
||||||
# Linux
|
# Linux
|
||||||
[[ -s /usr/lib/python2.7/site-packages/powerline/bindings/zsh/powerline.zsh ]] && . /usr/lib/python2.7/site-packages/powerline/bindings/zsh/powerline.zsh
|
[[ -s /usr/lib/python2.7/site-packages/powerline/bindings/zsh/powerline.zsh ]] && . /usr/lib/python2.7/site-packages/powerline/bindings/zsh/powerline.zsh
|
||||||
|
|
||||||
|
|
||||||
bindkey -e
|
bindkey -e
|
||||||
|
|
||||||
alias vi=vim
|
alias vi=vim
|
||||||
|
|
@ -56,14 +55,16 @@ if [[ -e /usr/share/chruby ]]; then
|
||||||
chruby $(cat ~/.ruby-version)
|
chruby $(cat ~/.ruby-version)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# GPG
|
eval `keychain --eval id_rsa`
|
||||||
GPG_AGENT=$(which gpg-agent)
|
|
||||||
GPG_TTY=`tty`
|
|
||||||
export GPG_TTY
|
|
||||||
|
|
||||||
if [ -f ${GPG_AGENT} ]; then
|
# GPG
|
||||||
. ~/dotfiles/bin/gpg-agent.sh
|
#GPG_AGENT=$(which gpg-agent)
|
||||||
fi
|
#GPG_TTY=`tty`
|
||||||
|
#export GPG_TTY
|
||||||
|
|
||||||
|
#if [ -f ${GPG_AGENT} ]; then
|
||||||
|
#. ~/dotfiles/bin/gpg-agent.sh
|
||||||
|
#fi
|
||||||
|
|
||||||
#autoload predict-on
|
#autoload predict-on
|
||||||
#predict-on
|
#predict-on
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue