Don't ask for ssh passphrase on TTY

master
Ian Mancini 5 years ago
parent 936962c597
commit e7e9f67e72

@ -21,7 +21,11 @@ export FZF_DEFAULT_COMMAND='ag -g ""'
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND" export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
# Keychain # Keychain
eval "$(keychain --quiet --eval --agents gpg,ssh id_rsa)" if [ -z ${DISPLAY+x} ]; then
eval "$(keychain --eval --quiet --noask --agents gpg,ssh id_rsa)"
else
eval "$(keychain --eval --quiet --agents gpg,ssh id_rsa)"
fi
# load Aliases # load Aliases
[ -f "$HOME/.aliasrc" ] && source "$HOME/.aliasrc" [ -f "$HOME/.aliasrc" ] && source "$HOME/.aliasrc"

@ -32,6 +32,7 @@ zplug "zsh-users/zsh-autosuggestions"
zplug "zsh-users/zsh-history-substring-search" zplug "zsh-users/zsh-history-substring-search"
zplug "zsh-users/zsh-completions" zplug "zsh-users/zsh-completions"
zplug "laurenkt/zsh-vimto" zplug "laurenkt/zsh-vimto"
zplug "MichaelAquilina/zsh-autoswitch-virtualenv"
# zplug "paulmelnikow/zsh-startup-timer" # zplug "paulmelnikow/zsh-startup-timer"
# zplug "lib/nvm", from:oh-my-zsh # zplug "lib/nvm", from:oh-my-zsh
@ -130,11 +131,15 @@ bindkey '^[[B' history-substring-search-down
export PATH=/home/ianmethyst/.local/bin:$PATH export PATH=/home/ianmethyst/.local/bin:$PATH
# fzf # fzf
export FZF_DEFAULT_COMMAND='ag -g ""' export FZF_DEFAULT_COMMAND='ag --hidden -g ""'
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND" export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
# Keychain # Keychain
if [ -z ${DISPLAY+x} ]; then
eval "$(keychain --eval --quiet --noask --agents gpg,ssh id_rsa)"
else
eval "$(keychain --eval --quiet --agents gpg,ssh id_rsa)" eval "$(keychain --eval --quiet --agents gpg,ssh id_rsa)"
fi
# fnm # fnm
export PATH=/home/ianmethyst/.fnm:$PATH export PATH=/home/ianmethyst/.fnm:$PATH

Loading…
Cancel
Save