added bunch of stuff

This commit is contained in:
ry
2022-01-31 16:55:07 -08:00
parent d799a1169a
commit 0cbe4c5fc0
8 changed files with 30 additions and 84 deletions

View File

@@ -1,5 +1,5 @@
# ~ Move files to trash folder instead ~ #
del () { mv "$@" $HOME/.local/share/trash/files/.; }
# Make directory and CD into it.
mk () { mkdir -p -- "$1" && cd -P -- "$1" }
mkcd () { mkdir -p -- "$1" && cd -P -- "$1" }
ls-awk () { ls -l --color=always | awk '{k=0;for(i=0;i<=8;i++)k+=((substr($1,i+2,1)~/[rwx]/) \
*2^(8-i));if(k)printf("%0o ",k);print}' }