diff options
| -rw-r--r-- | alias | 3 | ||||
| -rw-r--r-- | mutt/mailcap | 6 |
2 files changed, 5 insertions, 4 deletions
| @@ -91,12 +91,12 @@ port() { sudo lsof -i :$1; } | |||
| 91 | alias ports='sudo lsof -i -Pn | grep LISTEN' | 91 | alias ports='sudo lsof -i -Pn | grep LISTEN' |
| 92 | alias duu='du -hd 1 . | sort -hr' | 92 | alias duu='du -hd 1 . | sort -hr' |
| 93 | _move_to_tmp() { mv $@ /tmp; } | 93 | _move_to_tmp() { mv $@ /tmp; } |
| 94 | name() { find . -iname "$1"; } | ||
| 95 | alias latest='find . -type f | xargs ls -ltr | tail' | 94 | alias latest='find . -type f | xargs ls -ltr | tail' |
| 96 | alias lock='sudo chattr +i' # Make file undeletable | 95 | alias lock='sudo chattr +i' # Make file undeletable |
| 97 | alias chx='chmod +x' | 96 | alias chx='chmod +x' |
| 98 | alias chr='chmod +r' | 97 | alias chr='chmod +r' |
| 99 | alias findn='find . -iname' | 98 | alias findn='find . -iname' |
| 99 | name() { find . -iname "$1"; } | ||
| 100 | trash() { mv $@ /tmp/ 2>/dev/null || rm -rf $@; } | 100 | trash() { mv $@ /tmp/ 2>/dev/null || rm -rf $@; } |
| 101 | rmrf() { rm -rf $@; } | 101 | rmrf() { rm -rf $@; } |
| 102 | alias df='df -h' | 102 | alias df='df -h' |
| @@ -456,6 +456,7 @@ alias pip3='python3 -m pip' | |||
| 456 | alias foo='echo bar > foo && echo File foo is created && ls -lh foo' | 456 | alias foo='echo bar > foo && echo File foo is created && ls -lh foo' |
| 457 | alias bar='echo foo > bar && echo File bar is created && ls -lh bar' | 457 | alias bar='echo foo > bar && echo File bar is created && ls -lh bar' |
| 458 | alias sample.text='curl http://metaphorpsum.com/paragraphs/3/5' | 458 | alias sample.text='curl http://metaphorpsum.com/paragraphs/3/5' |
| 459 | alias sample.bible='curl https://cdn.jsdelivr.net/gh/wldeh/bible-api/bibles/bibles.json | jq .; echo https://github.com/wldeh/bible-api' | ||
| 459 | alias sample.gpx='curl -O https://docs.mapbox.com/help/data/run.gpx' | 460 | alias sample.gpx='curl -O https://docs.mapbox.com/help/data/run.gpx' |
| 460 | alias sample.geojson='curl -O https://docs.mapbox.com/help/data/stations.geojson' | 461 | alias sample.geojson='curl -O https://docs.mapbox.com/help/data/stations.geojson' |
| 461 | alias sample.gpkg='curl -O http://www.geopackage.org/data/sample1_1.gpkg' | 462 | 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; |