summaryrefslogtreecommitdiff
path: root/files/shell/profile
diff options
context:
space:
mode:
Diffstat (limited to 'files/shell/profile')
-rw-r--r--files/shell/profile12
1 files changed, 7 insertions, 5 deletions
diff --git a/files/shell/profile b/files/shell/profile
index f4cd2f2..be4e612 100644
--- a/files/shell/profile
+++ b/files/shell/profile
@@ -1,13 +1,15 @@
export PATH="$PATH:$HOME/.local/bin"
+
+SSH_AGENT_PID=""
+SSH_AUTH_SOCK="${XDG_RUNTIME_DIR}/gnupg/S.gpg-agent.ssh"
export GPG_TTY=$(tty)
-unset SSH_AGENT_PID
-if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
- export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
-fi
-export PYTHON_HISTORY=/tmp/python_history
+gpg-connect-agent updatestartuptty /bye >/dev/null
+
# Why aren't these set? elogind?
# https://wiki.gentoo.org/wiki/Configuring_a_system_without_elogind
export XDG_CACHE_HOME="/mnt/ssd/cache"
#export XDG_CONFIG_HOME="${HOME}/.config"
#export XDG_DATA_HOME="${HOME}/.local/share"
#export XDG_STATE_HOME="${HOME}/.local/state"
+
+export PYTHON_HISTORY=/tmp/python_history