mv: alias lt to func lt

This commit is contained in:
TheK4n 2022-07-30 21:36:01 +03:00
parent f8123a607b
commit bdb6db6357
2 changed files with 6 additions and 2 deletions

View File

@ -17,8 +17,6 @@ alias la='ls -AF'
alias lla='ls -lhFA'
alias ll.='ls -lhFA --ignore="*"'
alias lt='(du -sh * .* 2>/dev/null | sort -h | tac; du -sh .)'
alias _='sudo'
alias root='sudo su - root'

View File

@ -8,6 +8,12 @@ _sod () {
fi
}
lt () {
local DIR
test -z "$1" && DIR="." || DIR="$1"
du -sh "$DIR"/* "$DIR"/.* 2>/dev/null | sort -h | tac; du -sh "$DIR"/.
}
destroy() {
test -n "$1" || return 1
test -e "$1" || return 1