diff options
Diffstat (limited to 'alias')
-rw-r--r-- | alias | 3 |
1 files changed, 2 insertions, 1 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' |