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