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 daybreak='mosh daybreak -p 60101'
|
||||||
alias epoch='mosh epoch -p 60104'
|
alias epoch='mosh epoch -p 60104'
|
||||||
alias grc='gridcoinresearchd'
|
alias grc='gridcoinresearchd'
|
||||||
alias keychain='keychain --dir "$XDG_RUNTIME_DIR" --absolute'
|
|
||||||
alias l='exa -lh --git --all --octal-permissions'
|
alias l='exa -lh --git --all --octal-permissions'
|
||||||
alias ls='exa'
|
alias ls='exa'
|
||||||
alias lsa='exa -a'
|
alias lsa='exa -a'
|
||||||
@ -50,9 +49,14 @@ alias lss='exa -a'
|
|||||||
alias xrm='sudo xbps-remove'
|
alias xrm='sudo xbps-remove'
|
||||||
|
|
||||||
# GPG setup (and SSH)
|
# GPG setup (and SSH)
|
||||||
eval `keychain --quiet --eval --agents gpg D7F966B85D985743C76A17AC5A9572AE7B2E7E1C`
|
if command -v keychain; then
|
||||||
SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
|
alias keychain='keychain --dir "$XDG_RUNTIME_DIR" --absolute'
|
||||||
export SSH_AUTH_SOCK
|
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
|
### End user configuration
|
||||||
|
|
||||||
### hooks/includes
|
### hooks/includes
|
||||||
|
Loading…
Reference in New Issue
Block a user