Corrected error if which is loud

This commit is contained in:
Luke 2024-09-07 15:43:00 -07:00
parent afc83bb6c0
commit a606eb00c8

View file

@ -33,7 +33,7 @@ alias timer='echo "Timer started. Stop with Ctrl-D." && date && time cat && date
# IP addresses
alias pubip="dig +short myip.opendns.com @resolver1.opendns.com"
if [[ "$(which ncdu)" ]]; then
if [[ "$(which ncdu 2>/dev/null)" ]]; then
alias dush="ncdu --color dark -rr"
else
alias dush="echo please 'apt install ncdu'"