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