Set the GPG_TTY if not set
This commit is contained in:
@@ -115,3 +115,8 @@ if ! shopt -oq posix; then
|
|||||||
. /etc/bash_completion
|
. /etc/bash_completion
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# set GPG TTY
|
||||||
|
if [ "$GPG_TTY" = "" ]; then
|
||||||
|
export GPG_TTY=$(tty)
|
||||||
|
fi
|
||||||
|
|||||||
@@ -71,3 +71,8 @@ SAVEHIST=$HISTSIZE
|
|||||||
setopt BANG_HIST # Treat the '!' character specially during expansion.
|
setopt BANG_HIST # Treat the '!' character specially during expansion.
|
||||||
setopt HIST_BEEP # Beep when accessing nonexistent history.
|
setopt HIST_BEEP # Beep when accessing nonexistent history.
|
||||||
setopt HIST_LEX_WORDS # parse quotes when parsing history
|
setopt HIST_LEX_WORDS # parse quotes when parsing history
|
||||||
|
|
||||||
|
# set GPG_TTY
|
||||||
|
if [ "$GPG_TTY" = "" ]; then
|
||||||
|
export GPG_TTY=$(tty)
|
||||||
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user