This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Don't glob . and .. and don't ignore .files | |
export GLOBIGNORE=".:.." | |
# Old ducks with no color, sorted ascending with at most the 50 largest | |
#alias ducks='du -cksh * | sort -h | tail -n 50' | |
# ducks with color from ls, sorted ascending with at most the 50 largest | |
alias ducks="paste -d' ' <(du -cksh * | cut -f1) <(CLICOLOR_FORCE=1 ls -1d * && echo total) | sort -h | tail -n 50" |