diff --git a/bashrc b/bashrc index 264c14dd..1e1940af 100644 --- a/bashrc +++ b/bashrc @@ -375,6 +375,7 @@ fi # Use GPG2 instead of GPG! # alias gpg=gpg2 # MKAYSIGREP # MKAYSIGREPALIAS +alias gpg-fix-tty='export GPG_TTY=$(tty)' # For userspecific installation of mosh on remote server. alias lmosh="mosh --server=~/.local/bin/mosh-server " diff --git a/zshrc b/zshrc index ab233c77..0553b2d8 100644 --- a/zshrc +++ b/zshrc @@ -336,6 +336,8 @@ fi # Use GPG2 instead of GPG! #alias gpg=gpg2 # MKAYSIGREP MKAYSIGREPALIAS +alias gpg-fix-tty='export GPG_TTY=$(tty)' + # ZSH doesn't currently include automatic completion for GPG2, # so use the GPG one, which works with GPG2 too. This is in aliases, # because that above alias needs this and this will disappear when zsh