aboutsummaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2020-05-28 14:53:34 +0200
committerPatrick Spek <p.spek@tyil.nl>2021-08-14 11:59:38 +0200
commit782300fc5b52ae6e29d905a827efb55f2a6f9341 (patch)
tree0f93a6f3a1682cde5dc382d676b5e241cc4b6ab8 /.config
parent08b89c24a9ee4ff1382a16ce0c9beecb10fc4eed (diff)
Alter GPG agent check, and remove a clear call
Diffstat (limited to '.config')
-rw-r--r--.config/shell/env3
-rw-r--r--.config/shell/sources2
2 files changed, 3 insertions, 2 deletions
diff --git a/.config/shell/env b/.config/shell/env
index 3ccbdd3..6b72eb7 100644
--- a/.config/shell/env
+++ b/.config/shell/env
@@ -43,7 +43,8 @@ export XDG_TEMPLATES_DIR="${HOME}/.local/templates"
#export XDG_RUNTIME_DIR=""
# export gpg-agent
-if [ -z "$GPG_AGENT_INFO" ]; then
+if ! gpg-connect-agent /bye
+then
eval $(gpg-agent --daemon)
fi
diff --git a/.config/shell/sources b/.config/shell/sources
index 6e3d078..d05c7f8 100644
--- a/.config/shell/sources
+++ b/.config/shell/sources
@@ -124,4 +124,4 @@ if [ -f "${HOME}/.config/shell/motd" ]; then
fi
# clear terminal
-[ "$DEBUG_DOTFILES" ] || clear
+#[ "$DEBUG_DOTFILES" ] || clear