mirror of https://github.com/nirenjan/dotfiles.git
Compare commits
2 Commits
9da5e26220
...
4497e4e3b1
Author | SHA1 | Date |
---|---|---|
|
4497e4e3b1 | |
|
a866ab7d4e |
19
zsh/gpg.zsh
19
zsh/gpg.zsh
|
@ -1,10 +1,13 @@
|
||||||
gpgconf --launch gpg-agent
|
if command -v gpgconf >/dev/null
|
||||||
|
|
||||||
export SSH_AUTH_SOCK="$HOME/.gnupg/S.gpg-agent.ssh"
|
|
||||||
|
|
||||||
TSOCK=$(gpgconf --list-dirs agent-ssh-socket || true)
|
|
||||||
if [[ -n "$TSOCK" ]]
|
|
||||||
then
|
then
|
||||||
export SSH_AUTH_SOCK="$TSOCK"
|
gpgconf --launch gpg-agent
|
||||||
unset TSOCK
|
|
||||||
|
export SSH_AUTH_SOCK="$HOME/.gnupg/S.gpg-agent.ssh"
|
||||||
|
|
||||||
|
TSOCK=$(gpgconf --list-dirs agent-ssh-socket || true)
|
||||||
|
if [[ -n "$TSOCK" ]]
|
||||||
|
then
|
||||||
|
export SSH_AUTH_SOCK="$TSOCK"
|
||||||
|
unset TSOCK
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -44,10 +44,10 @@ DCFILE="$HOME/.dircolors"
|
||||||
# a system which has the GNU coreutils installed
|
# a system which has the GNU coreutils installed
|
||||||
if [[ -f $DCFILE ]] && [[ -s $DCFILE ]]
|
if [[ -f $DCFILE ]] && [[ -s $DCFILE ]]
|
||||||
then
|
then
|
||||||
if [[ ! -z `which dircolors` ]]
|
if command -v dircolors >/dev/null
|
||||||
then
|
then
|
||||||
eval `dircolors $DCFILE`
|
eval `dircolors $DCFILE`
|
||||||
elif [[ ! -z `which gdircolors` ]]
|
elif command -v gdircolors >/dev/null
|
||||||
then
|
then
|
||||||
# OS X with coreutils installed from MacPorts will have
|
# OS X with coreutils installed from MacPorts will have
|
||||||
# dircolors installed by default as gdircolors.
|
# dircolors installed by default as gdircolors.
|
||||||
|
|
Loading…
Reference in New Issue