diff options
Diffstat (limited to 'profile.dot.link')
-rw-r--r-- | profile.dot.link | 14 |
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 |