dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 06386b2c35efc737d738fcc8264824f58e9dd97d
parent 88d851523fd0232b6126511d31d1f5e83fa2c6c0
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Mon, 21 Oct 2019 20:11:54 +0200

Show link numbers in w3m html mail parsing, add back GPG_TTY setting

Diffstat:
M.mailcap | 2+-
M.profile | 3+++
2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/.mailcap b/.mailcap @@ -1,7 +1,7 @@ # HTML #text/html; cp %s ~/.mutt/tmp.html && xdg-open ~/.mutt/tmp.html && sleep 3 && rm ~/.mutt/tmp.html; test=test -n "$DISPLAY" text/html; cp %s ~/tmp/tmp.html && surf-open.sh ~/tmp/tmp.html && sleep 3 && rm ~/tmp/tmp.html; test=test -n "$DISPLAY" -text/html; w3m -I %{charset} -T text/html; copiousoutput; needsterminal +text/html; w3m -I %{charset} -o display_link_number=1 -T text/html; copiousoutput; needsterminal text/plain; cat %s; copiousoutput text/*; $EDITOR %s; needsterminal diff --git a/.profile b/.profile @@ -23,6 +23,9 @@ export NNN_PLUG # x-key binds (max 10) export NNN_USE_EDITOR=1 # always open text files in $EDITOR export NNN_OPENER_DETACH=1 # do not block nnn with file opener +GPG_TTY=$(tty) +export GPG_TTY + alias e='$EDITOR' f() {