diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2024-11-28 17:00:19 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2024-11-28 17:00:19 +0800 |
commit | 6f541f38f22111c84ca1aa385f522dc7d75b55e6 (patch) | |
tree | 846b6f902d78a666ebae5a150af89e08402f83cb | |
parent | feec295692bd82e3193bf228ce709b8d63a0c24c (diff) | |
parent | eb613c35fbff28b9bcb4b1cabd1c1911b74efd2f (diff) |
Merge remote-tracking branch 'origin/dev' into dev
-rw-r--r-- | alias | 3 | ||||
-rw-r--r-- | mutt/mailcap | 6 |
2 files changed, 5 insertions, 4 deletions
@@ -133,12 +133,12 @@ port() { sudo lsof -i :$1; } | |||
133 | alias ports='sudo lsof -i -Pn | grep LISTEN' | 133 | alias ports='sudo lsof -i -Pn | grep LISTEN' |
134 | alias duu='du -hd 1 . | sort -hr' | 134 | alias duu='du -hd 1 . | sort -hr' |
135 | _move_to_tmp() { mv $@ /tmp; } | 135 | _move_to_tmp() { mv $@ /tmp; } |
136 | name() { find . -iname "$1"; } | ||
137 | alias latest='find . -type f | xargs ls -ltr | tail' | 136 | alias latest='find . -type f | xargs ls -ltr | tail' |
138 | alias lock='sudo chattr +i' # Make file undeletable | 137 | alias lock='sudo chattr +i' # Make file undeletable |
139 | alias chx='chmod +x' | 138 | alias chx='chmod +x' |
140 | alias chr='chmod +r' | 139 | alias chr='chmod +r' |
141 | alias findn='find . -iname' | 140 | alias findn='find . -iname' |
141 | name() { find . -iname "$1"; } | ||
142 | trash() { mv $@ /tmp/ 2>/dev/null || rm -rf $@; } | 142 | trash() { mv $@ /tmp/ 2>/dev/null || rm -rf $@; } |
143 | rmrf() { rm -rf $@; } | 143 | rmrf() { rm -rf $@; } |
144 | alias df='df -h' | 144 | alias df='df -h' |
@@ -454,6 +454,7 @@ adb.push() { | |||
454 | alias foo='echo bar > foo && echo File foo is created && ls -lh foo' | 454 | alias foo='echo bar > foo && echo File foo is created && ls -lh foo' |
455 | alias bar='echo foo > bar && echo File bar is created && ls -lh bar' | 455 | alias bar='echo foo > bar && echo File bar is created && ls -lh bar' |
456 | alias sample.text='curl http://metaphorpsum.com/paragraphs/3/5' | 456 | alias sample.text='curl http://metaphorpsum.com/paragraphs/3/5' |
457 | alias sample.bible='curl https://cdn.jsdelivr.net/gh/wldeh/bible-api/bibles/bibles.json | jq .; echo https://github.com/wldeh/bible-api' | ||
457 | alias sample.gpx='curl -O https://docs.mapbox.com/help/data/run.gpx' | 458 | alias sample.gpx='curl -O https://docs.mapbox.com/help/data/run.gpx' |
458 | alias sample.geojson='curl -O https://docs.mapbox.com/help/data/stations.geojson' | 459 | alias sample.geojson='curl -O https://docs.mapbox.com/help/data/stations.geojson' |
459 | alias sample.gpkg='curl -O http://www.geopackage.org/data/sample1_1.gpkg' | 460 | 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 @@ | |||
1 | text/html; firefox '%s'; test=test -n "$DISPLAY"; needsterminal; | 1 | text/html; surf '%s'; test=test -n "$DISPLAY"; copiousoutput; |
2 | text/html; w3m -I %{charset} -T text/html; copiousoutput; | 2 | # text/html; w3m -I %{charset} -T text/html; copiousoutput; |
3 | text/plain; firefox '%s'; test=test -n "$DISPLAY"; needsterminal; | 3 | text/plain; surf '%s'; test=test -n "$DISPLAY"; needsterminal; |
4 | application/json; jq . %s | less -N; copiousoutput; | 4 | application/json; jq . %s | less -N; copiousoutput; |
5 | application/pdf; firefox '%s'; test=test -n "$DISPLAY"; needsterminal; | 5 | application/pdf; firefox '%s'; test=test -n "$DISPLAY"; needsterminal; |
6 | application/octet-stream; firefox '%s'; test=test -n "$DISPLAY"; needsterminal; | 6 | application/octet-stream; firefox '%s'; test=test -n "$DISPLAY"; needsterminal; |