summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlxf <sng@luxagraf.net>2020-12-12 17:48:50 +0000
committerlxf <sng@luxagraf.net>2020-12-12 17:48:50 +0000
commita9164c2a5248077c73dd050113b167008a6dda41 (patch)
tree4e0431f4cdda57d937769f240c71097958c4e5eb
parent383ce5da5f2230c08fd527336f56f60a5d3e71d0 (diff)
added gpg hook to bashrc
-rw-r--r--.bashrc7
1 files changed, 6 insertions, 1 deletions
diff --git a/.bashrc b/.bashrc
index 710740b..6ba2c5f 100644
--- a/.bashrc
+++ b/.bashrc
@@ -380,7 +380,10 @@ if [[ "$SSH_AGENT_PID" == "" ]]; then
eval $(<~/.ssh-agent-thing)
fi
ssh-add -l >/dev/null || alias ssh='ssh-add -l >/dev/null || ssh-add && unalias ssh; ssh'
-
+if [ -n "$DESKTOP_SESSION" ];then
+ eval $(gnome-keyring-daemon --start)
+ export SSH_AUTH_SOCK
+fi
#export WINEPREFIX=$HOME/.config/wine/
#export WINEARCH=win32
@@ -406,3 +409,5 @@ fshow() {
FZF-EOF"
}
RIPGREP_CONFIG_PATH=~/.ripgreprc
+GPG_TTY=$(tty)
+export GPG_TTY