How to: How do I export GPG_TTY when using instant prompt?
You can export `GPG_TTY` like this anywhere in `~/.zshrc`:

```zsh
export GPG_TTY=$TTY
```

This works whether you are using [instant prompt](#instant-prompt) or not. It works even if you
aren't using powerlevel10k. As an extra bonus, it's much faster than the commonly used
`export GPG_TTY=$(tty)`.

*Related*: [How do I initialize direnv when using instant prompt?](
  #how-do-i-initialize-direnv-when-using-instant-prompt)