xset -b
+if ! pgrep -x -u "${USER}" gpg-agent>/dev/null 2>&1; then
+ eval $(gpg-agent --daemon \
+ --use-standard-socket \
+ --write-env-file "${HOME}/.gpg-agent-info")
+fi
+
+gpg-connect-agent udatestartuptty /bye >/dev/null
+
exec /usr/bin/ratpoison
}
PROMPT_COMMAND=__prompt_command
+
GPG_TTY=$(tty)
export GPG_TTY
-
-if ! pgrep -x -u "${USER}" gpg-agent>/dev/null 2>&1; then
- eval $(gpg-agent --daemon \
- --use-standard-socket \
- --write-env-file "${HOME}/.gpg-agent-info")
-fi
-
-gpg-connect-agent udatestartuptty /bye >/dev/null
-