aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustine Smithies <justine@smithies.me.uk>2024-11-20 18:15:45 +0000
committerJustine Smithies <justine@smithies.me.uk>2024-11-20 18:15:45 +0000
commit30a69844b90150b4446bc7a2f741702b8e70a46e (patch)
treee75e930c787ae4d79fac3c76d60b2eff9fcfed22
parent27c5783ea6207506d6c70149427990793ca2c0e3 (diff)
Added variables to enable gpg-agent to function
-rw-r--r--.bashrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/.bashrc b/.bashrc
index bac63b9..511319b 100644
--- a/.bashrc
+++ b/.bashrc
@@ -91,6 +91,10 @@ export SAL_USE_VCLPLUGIN=gtk3
# If using musl then set this variable to ensure tree-sitter grammars can be loaded correctly
# export RUSTFLAGS="-C target-feature=-crt-static"
+# Always add below to allow gpg-agent to work correctly
+GPG_TTY=$(tty)
+export GPG_TTY
+
# Enable the use of ssh-agent
if ! pgrep -u "$USER" ssh-agent > /dev/null; then
ssh-agent -t 1h > "$XDG_RUNTIME_DIR/ssh-agent.env"