Skip to content

Commit a7f4adb

Browse files
committed
fix(keyring): refresh gpg tty before pass
1 parent 1cf4181 commit a7f4adb

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/zlibs/keyring

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@
2424
# pass wrapper to set all env
2525
_pass() {
2626
fn pass $*
27+
[[ -t 0 ]] && {
28+
export GPG_TTY=$(tty)
29+
command -v gpg-connect-agent >/dev/null 2>&1 &&
30+
gpg-connect-agent updatestartuptty /bye >/dev/null 2>&1
31+
}
2732
PASSWORD_STORE_DIR=$PASSWORD_STORE_DIR pass $*
2833
}
2934

0 commit comments

Comments
 (0)