dotfiles

*nix config files
git clone git://git.pyratebeard.net/dotfiles.git
Log | Files | Refs | README

commit 004c38c56394b7f319029aea157994873f645582
parent 4669ac66ff1f7d1f10a2298dcd6d251a0a37e78b
Author: pyratebeard <root@pyratebeard.net>
Date:   Wed, 31 Jan 2024 15:45:32 +0000

XDG changes. shortner now with ssl

Diffstat:
Mmutt/.local/bin/mailfmtshort | 2+-
Mmutt/.mailcap | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/mutt/.local/bin/mailfmtshort b/mutt/.local/bin/mailfmtshort @@ -16,7 +16,7 @@ grep -vE -- '\[-- .* --\]$' | fmt -s -w $w | tee $tmp1 > $tmp2 grep -oE '[hH][tT]{2}[pP][sS]?://([^/?#><"]+)([^?#><"]*)(\?([^#><"]*))?(#(.*))?' $tmp1 | sort | uniq | while read url; do if [ "$(echo $url | wc -c)" -gt $w ]; then # shorten url - short=$(curl -sS -X PUT -d "$url" http://url.short) + short=$(curl -sS -X PUT -d "$url" https://s.rum.sh) # escape special chars in url for passing it to sed escape=$(printf '%s\n' "$url" | sed 's/[]\/$*.^[]/\\&/g') diff --git a/mutt/.mailcap b/mutt/.mailcap @@ -73,4 +73,4 @@ video/*; mpv '%s' --autofit=640x480 --loop=inf; test=test -n "$DISPLAY" #text/html; /usr/bin/firefox %s >/dev/null 2>&1; needsterminal #text/html; /usr/bin/w3m -I %{charset} -T text/html; copiusoutput #text/html; /usr/bin/lynx -dump -force_html -width=96 '%s'; needsterminal; copiusoutput -text/html; /home/pyratebeard/bin/htmldump -c %{charset} '%s'; copiousoutput +text/html; /home/pyratebeard/.local/bin/htmldump -c %{charset} '%s'; copiousoutput