From eb613c35fbff28b9bcb4b1cabd1c1911b74efd2f Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Thu, 28 Nov 2024 13:13:54 +0800 Subject: Update --- alias | 3 ++- mutt/mailcap | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/alias b/alias index 1e5a250..e56a79d 100644 --- a/alias +++ b/alias @@ -91,12 +91,12 @@ port() { sudo lsof -i :$1; } alias ports='sudo lsof -i -Pn | grep LISTEN' alias duu='du -hd 1 . | sort -hr' _move_to_tmp() { mv $@ /tmp; } -name() { find . -iname "$1"; } alias latest='find . -type f | xargs ls -ltr | tail' alias lock='sudo chattr +i' # Make file undeletable alias chx='chmod +x' alias chr='chmod +r' alias findn='find . -iname' +name() { find . -iname "$1"; } trash() { mv $@ /tmp/ 2>/dev/null || rm -rf $@; } rmrf() { rm -rf $@; } alias df='df -h' @@ -456,6 +456,7 @@ alias pip3='python3 -m pip' alias foo='echo bar > foo && echo File foo is created && ls -lh foo' alias bar='echo foo > bar && echo File bar is created && ls -lh bar' alias sample.text='curl http://metaphorpsum.com/paragraphs/3/5' +alias sample.bible='curl https://cdn.jsdelivr.net/gh/wldeh/bible-api/bibles/bibles.json | jq .; echo https://github.com/wldeh/bible-api' alias sample.gpx='curl -O https://docs.mapbox.com/help/data/run.gpx' alias sample.geojson='curl -O https://docs.mapbox.com/help/data/stations.geojson' alias sample.gpkg='curl -O http://www.geopackage.org/data/sample1_1.gpkg' diff --git a/mutt/mailcap b/mutt/mailcap index f69f82e..23eadba 100644 --- a/mutt/mailcap +++ b/mutt/mailcap @@ -1,6 +1,6 @@ -text/html; firefox '%s'; test=test -n "$DISPLAY"; needsterminal; -text/html; w3m -I %{charset} -T text/html; copiousoutput; -text/plain; firefox '%s'; test=test -n "$DISPLAY"; needsterminal; +text/html; surf '%s'; test=test -n "$DISPLAY"; copiousoutput; +# text/html; w3m -I %{charset} -T text/html; copiousoutput; +text/plain; surf '%s'; test=test -n "$DISPLAY"; needsterminal; application/json; jq . %s | less -N; copiousoutput; application/pdf; firefox '%s'; test=test -n "$DISPLAY"; needsterminal; application/octet-stream; firefox '%s'; test=test -n "$DISPLAY"; needsterminal; -- cgit v1.2.3-70-g09d2