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 491336c..3304f7c 100644
--- a/alias
+++ b/alias
@@ -133,12 +133,12 @@ port() { sudo lsof -i :$1; }
133alias ports='sudo lsof -i -Pn | grep LISTEN' 133alias ports='sudo lsof -i -Pn | grep LISTEN'
134alias duu='du -hd 1 . | sort -hr' 134alias duu='du -hd 1 . | sort -hr'
135_move_to_tmp() { mv $@ /tmp; } 135_move_to_tmp() { mv $@ /tmp; }
136name() { find . -iname "$1"; }
137alias latest='find . -type f | xargs ls -ltr | tail' 136alias latest='find . -type f | xargs ls -ltr | tail'
138alias lock='sudo chattr +i' # Make file undeletable 137alias lock='sudo chattr +i' # Make file undeletable
139alias chx='chmod +x' 138alias chx='chmod +x'
140alias chr='chmod +r' 139alias chr='chmod +r'
141alias findn='find . -iname' 140alias findn='find . -iname'
141name() { find . -iname "$1"; }
142trash() { mv $@ /tmp/ 2>/dev/null || rm -rf $@; } 142trash() { mv $@ /tmp/ 2>/dev/null || rm -rf $@; }
143rmrf() { rm -rf $@; } 143rmrf() { rm -rf $@; }
144alias df='df -h' 144alias df='df -h'
@@ -454,6 +454,7 @@ adb.push() {
454alias foo='echo bar > foo && echo File foo is created && ls -lh foo' 454alias foo='echo bar > foo && echo File foo is created && ls -lh foo'
455alias bar='echo foo > bar && echo File bar is created && ls -lh bar' 455alias bar='echo foo > bar && echo File bar is created && ls -lh bar'
456alias sample.text='curl http://metaphorpsum.com/paragraphs/3/5' 456alias sample.text='curl http://metaphorpsum.com/paragraphs/3/5'
457alias sample.bible='curl https://cdn.jsdelivr.net/gh/wldeh/bible-api/bibles/bibles.json | jq .; echo https://github.com/wldeh/bible-api'
457alias sample.gpx='curl -O https://docs.mapbox.com/help/data/run.gpx' 458alias sample.gpx='curl -O https://docs.mapbox.com/help/data/run.gpx'
458alias sample.geojson='curl -O https://docs.mapbox.com/help/data/stations.geojson' 459alias sample.geojson='curl -O https://docs.mapbox.com/help/data/stations.geojson'
459alias sample.gpkg='curl -O http://www.geopackage.org/data/sample1_1.gpkg' 460alias 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;