Please gpg use this tty

This commit is contained in:
Dan Buch 2023-11-13 18:30:31 -05:00
parent 6b498fcf35
commit c9703e735b
Signed by: meatballhat
GPG Key ID: A12F782281063434
2 changed files with 4 additions and 4 deletions

2
zprofile Normal file
View File

@ -0,0 +1,2 @@
GPG_TTY=$(tty)
export GPG_TTY

6
zshrc
View File

@ -187,8 +187,6 @@ cdpath=(
$HOME/src $HOME/src
) )
export GPG_TTY=$(tty)
function __maybesource() { function __maybesource() {
if [[ -f "${1}" ]]; then if [[ -f "${1}" ]]; then
if [[ "${2}" == silent ]]; then if [[ "${2}" == silent ]]; then
@ -256,7 +254,7 @@ if kitty --version &>/dev/null; then
kitty + complete setup zsh | source /dev/stdin kitty + complete setup zsh | source /dev/stdin
fi fi
true
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
true