add -x arg to du in function dush

so it does not traverse into other filesystems - makes no sense for the intended use
This commit is contained in:
2024-07-05 08:56:23 +02:00
parent 678137502d
commit 89d2efdc74

View File

@@ -13,7 +13,7 @@ function grepr { grep -n -i -r "${@:1}" . --color=always | grep -v -e "Binär" -
function grepnr { grep -n -r "${@:1}" . --color=always | grep -v -e "Binär" -e "Binary file" -e "rr-cache"; }
function runs { ps -ef | grep $1 | grep -v grep; }
function timestamptodate { date -d @$1; }
function dush { pwd=$(pwd); cd "$1"; sudo du -csh --apparent-size ./* .[^.]* | grep -v "nicht gefunden" | sort -h; cd $pwd; }
function dush { pwd=$(pwd); cd "$1"; sudo du -xcsh --apparent-size ./* .[^.]* | grep -v "nicht gefunden" | sort -h; cd $pwd; }
function upgrade { if command -v apt-fast; then hereapt="apt-fast"; else hereapt="apt"; fi; sudo $hereapt update && sudo $hereapt upgrade; }
alias svim="sudo -E vim"
alias aliases='vim ~/.bash_aliases; unalias -a && source ~/.bashrc; source ~/.bash_aliases'