diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-02-26 00:11:46 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-02-26 00:11:46 +0300 |
commit | b3aae205ac5a470f0ddd33b1c9e80821e76c09e2 (patch) | |
tree | 53c77554da90bc45ac1528dfd90ed7103c0578db | |
parent | tmux: add a shortcut for `kill-session -a` (diff) | |
download | linux-home-b3aae205ac5a470f0ddd33b1c9e80821e76c09e2.tar.gz linux-home-b3aae205ac5a470f0ddd33b1c9e80821e76c09e2.zip |
.bashrc: export GPG_TTY
-rw-r--r-- | %HOME%/.bashrc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/%HOME%/.bashrc b/%HOME%/.bashrc index 3b350f3..94dd1f3 100644 --- a/%HOME%/.bashrc +++ b/%HOME%/.bashrc @@ -61,6 +61,16 @@ alias coredumpctl='coredumpctl --debugger-arguments="-q"' # Group by 1 byte only with xxd: alias xxd='xxd -groupsize 1' +# This doc says that "you should always add the following lines to your +# .bashrc": +# +# https://www.gnupg.org/documentation/manuals/gnupg/Invoking-GPG_002dAGENT.html +# +# Otherwise, GPG signing in git often doesn't work (for example, ever a SSH +# connection): https://stackoverflow.com/a/54809060/514684 +GPG_TTY="$( tty )" +export GPG_TTY + [ -r "$HOME/.bash_utils/file.sh" ] && source "$HOME/.bash_utils/file.sh" [ -r "$HOME/.bash_utils/text.sh" ] && source "$HOME/.bash_utils/text.sh" |