Confusing tweaks to do Emacs, GPG pinentry over ssh
and the old fallback for using tty, added "gpgtemp" in casemain
parent
6cfeee788f
commit
7dddbf6002
|
@ -41,6 +41,11 @@
|
||||||
;; doesn't show in childframe, but might be useful in terminal
|
;; doesn't show in childframe, but might be useful in terminal
|
||||||
company-show-quick-access 1))
|
company-show-quick-access 1))
|
||||||
|
|
||||||
|
;; pinentry for emacs ssh gpg
|
||||||
|
(use-package! pinentry
|
||||||
|
:init (setq epg-pinentry-mode `loopback)
|
||||||
|
(pinentry-start))
|
||||||
|
|
||||||
;; Whenever you reconfigure a package, make sure to wrap your config in an
|
;; Whenever you reconfigure a package, make sure to wrap your config in an
|
||||||
;; `after!' block, otherwise Doom's defaults may override your settings. E.g.
|
;; `after!' block, otherwise Doom's defaults may override your settings. E.g.
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -52,3 +52,4 @@
|
||||||
(package! ghq :pin "582bd6daa505d04c7cc06d6c82ed8aee0624bfbe")
|
(package! ghq :pin "582bd6daa505d04c7cc06d6c82ed8aee0624bfbe")
|
||||||
(package! smudge :pin "9e3488f485b7d7f3c97ebaad34ed552bb0cc228a")
|
(package! smudge :pin "9e3488f485b7d7f3c97ebaad34ed552bb0cc228a")
|
||||||
(package! speed-type :pin "5ef695f7159aa1f20c7c9e55f0c39bcdacce8d21")
|
(package! speed-type :pin "5ef695f7159aa1f20c7c9e55f0c39bcdacce8d21")
|
||||||
|
(package! pinentry)
|
||||||
|
|
|
@ -4,3 +4,5 @@ default-cache-ttl 86400
|
||||||
max-cache-ttl 86400
|
max-cache-ttl 86400
|
||||||
# pinentry-program /usr/bin/pinentry-gnome3
|
# pinentry-program /usr/bin/pinentry-gnome3
|
||||||
# idk if this needs to be adjusted for macos
|
# idk if this needs to be adjusted for macos
|
||||||
|
allow-emacs-pinentry
|
||||||
|
allow-loopback-pinentry
|
||||||
|
|
10
zsh/.zshrc
10
zsh/.zshrc
|
@ -71,9 +71,14 @@ if [[ "$HOST" == core.envs.net ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# tycho (which is a laptop)
|
# tycho (which is a laptop)
|
||||||
if [[ "$HOST" == tycho && -z "$DISPLAY" ]]; then
|
#if [[ "$HOST" == tycho && -z "$DISPLAY" ]]; then
|
||||||
|
# export GPG_TTY=$(tty)
|
||||||
|
#fi
|
||||||
|
|
||||||
|
gpgtemp() {
|
||||||
export GPG_TTY=$(tty)
|
export GPG_TTY=$(tty)
|
||||||
fi
|
echo "remember to run gpgyeet once done..."
|
||||||
|
}
|
||||||
|
|
||||||
# pash configuration
|
# pash configuration
|
||||||
export PASH_KEYID=BF66E5C8A1416E2A857C774CA343F43342EB6E2A
|
export PASH_KEYID=BF66E5C8A1416E2A857C774CA343F43342EB6E2A
|
||||||
|
@ -100,6 +105,7 @@ pash() {
|
||||||
# GPG: invalidate acahe
|
# GPG: invalidate acahe
|
||||||
gpgyeet() {
|
gpgyeet() {
|
||||||
echo RELOADAGENT | gpg-connect-agent
|
echo RELOADAGENT | gpg-connect-agent
|
||||||
|
unset GPG_TTY
|
||||||
}
|
}
|
||||||
|
|
||||||
# emacs magit
|
# emacs magit
|
||||||
|
|
Loading…
Reference in New Issue