make keychain and gpgconf only run when found
This commit is contained in:
parent
03dc9528e1
commit
65808aed66
@ -42,7 +42,6 @@ alias c='clear'
|
||||
alias daybreak='mosh daybreak -p 60101'
|
||||
alias epoch='mosh epoch -p 60104'
|
||||
alias grc='gridcoinresearchd'
|
||||
alias keychain='keychain --dir "$XDG_RUNTIME_DIR" --absolute'
|
||||
alias l='exa -lh --git --all --octal-permissions'
|
||||
alias ls='exa'
|
||||
alias lsa='exa -a'
|
||||
@ -50,9 +49,14 @@ alias lss='exa -a'
|
||||
alias xrm='sudo xbps-remove'
|
||||
|
||||
# GPG setup (and SSH)
|
||||
if command -v keychain; then
|
||||
alias keychain='keychain --dir "$XDG_RUNTIME_DIR" --absolute'
|
||||
eval `keychain --quiet --eval --agents gpg D7F966B85D985743C76A17AC5A9572AE7B2E7E1C`
|
||||
fi
|
||||
if command -v gpgconf; then
|
||||
SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
|
||||
export SSH_AUTH_SOCK
|
||||
fi
|
||||
### End user configuration
|
||||
|
||||
### hooks/includes
|
||||
|
Loading…
Reference in New Issue
Block a user