tmux-pinentry/README.md

15 lines
517 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# GPG Pinentry inside TMUX
See it in action:
[![asciicast](https://asciinema.org/a/UE29nOhgOVwjESVIoj1ftFqWt.svg)](https://asciinema.org/a/UE29nOhgOVwjESVIoj1ftFqWt)
## Installation
1. add your fallback pinentry to `pinentry-tmux.sh`
2. put the shell script in your path, eg. `~/.local/bin/pinentry-tmux` (without `.sh`)
3. configure gpg to use `pinentry-tmux` for pinentry
4. for the script to detect that its running inside of TMUX, add this to your TMUX config:
```sh
PINENTRY_USER_DATA="tmux"
```