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