From a9164c2a5248077c73dd050113b167008a6dda41 Mon Sep 17 00:00:00 2001 From: lxf Date: Sat, 12 Dec 2020 17:48:50 +0000 Subject: added gpg hook to bashrc --- .bashrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-70-g09d2