aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2024-02-27 23:50:11 -0300
committerSilvio Rhatto <rhatto@riseup.net>2024-02-27 23:50:11 -0300
commit527fc230c5825d9e668630e052c09586b8373d72 (patch)
treea1acea5f2cadf70ea7e8a3403dc718192399333c
parent7eaa99af9f2083e851606a51ce855861db4aee77 (diff)
downloadprofile-527fc230c5825d9e668630e052c09586b8373d72.tar.gz
profile-527fc230c5825d9e668630e052c09586b8373d72.tar.bz2
Fix: export FIREJAIL_QUIET and GPG_TTY
-rw-r--r--profile.dot.link14
1 files changed, 13 insertions, 1 deletions
diff --git a/profile.dot.link b/profile.dot.link
index 2a6889d..881fa0b 100644
--- a/profile.dot.link
+++ b/profile.dot.link
@@ -259,7 +259,7 @@ mkedit() {
export GIT_PS1_SHOWDIRTYSTATE=""
export GIT_PS1_SHOWUNTRACKEDFILES=""
-# enable programmable completion features (you don't need to enable
+# Enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ ! -z "$BASH" ]; then
@@ -283,6 +283,11 @@ fi
# fi
#fi
+# Firejail configuration
+# This my hide important errors, so it's recommended to try running a
+# firejailed command with FIREJAIL_QUIET=no to debug.
+export FIREJAIL_QUIET="yes"
+
# Less configuration
# See http://seclists.org/fulldisclosure/2014/Nov/74
export LESSSECURE="1"
@@ -312,6 +317,13 @@ if [ -x "$HOME/apps/utils-ssh/ssh-agent-loadkeys" ]; then
. $HOME/apps/utils-ssh/ssh-agent-loadkeys
fi
+# Set the proper GnuPG TTY when running on console
+# See https://stackoverflow.com/questions/51504367/gpg-agent-forwarding-inappropriate-ioctl-for-device#55032706
+# https://superuser.com/questions/1649997/unable-to-decrypt-from-stdin-public-key-decryption-failed-inappropriate-ioctl
+if [ -z "$DISPLAY" ]; then
+ export GPG_TTY=$(tty)
+fi
+
#if [ -e "$HOME/apps/utils-ssh/ssh-agent-eval" ]; then
# $HOME/apps/utils-ssh/ssh-agent-eval
#fi