summaryrefslogtreecommitdiffstatshomepage
path: root/gnupg/.config/zsh/.zshrc.d/20-gnupg.zsh
blob: 3348c839d0edc4f9a2415efcb55d2a86ed39e470 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/zsh
# vim:ft=sh

GPG_TTY=$(tty)
export GPG_TTY

gpg-connect-agent updatestartuptty /bye >/dev/null

alias unlock='echo "" | gpg --clearsign 1>/dev/null && ssh localhost -- : 1>/dev/null'