1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

zshrc: ensure GPG prompt is the current TTY

This commit is contained in:
Joe Groocock 2017-10-03 10:15:34 +01:00
parent 3ce722f60a
commit 0284b8765e
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86

6
.zshrc
View File

@ -17,6 +17,12 @@ HISTSIZE=100000
SAVEHIST=100000
setopt sharehistory histignoredups histignorespace histreduceblanks autocd autopushd extendedglob alwaystoend dvorak
# Only set tty if running interactively
if tty -s; then
# Resolve at shell runtime
export GPG_TTY="$(tty)"
fi
export WORDCHARS='*?_[]~=&;!#$%^(){}'
bindkey -e