largefiles remove stderr

This commit is contained in:
Christoph J. Scherr 2023-02-04 17:51:13 +01:00
parent deae930d72
commit d848bb0440
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ alias lgrep="find | grep"
alias psgrep="ps axu | grep"
alias isotime='date +"%Y-%m-%dT%H:%M:%S%z"'
### Functions
function largefiles () { du -h "$@" | grep -P "\d+\.\d+(G|T)"; }
function largefiles () { exec 2>/dev/null; du -ah "$@" | grep -P "^\d+(G|T|P|E)\s" }
### ZSH HOME
export ZSH=$HOME/.zsh-server

View File

@ -26,7 +26,7 @@ alias isotime='date +"%Y-%m-%dT%H:%M:%S%z"'
alias vim="vimx"
### Functions
function largefiles () { du -h "$@" | grep -P "\d+\.\d+(G|T)"; }
function largefiles () { exec 2>/dev/null; du -ah "$@" | grep -P "^\d+(G|T|P|E)\s" }
### ZSH HOME
export ZSH=$HOME/.zsh