Created
January 10, 2022 14:17
-
-
Save DrAzraelTod/3f7c4ed8c6a4e9eb47ab0b22e7ae6d3c to your computer and use it in GitHub Desktop.
actually just some alias, living in my bashrc not it's own shell script
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/sh | |
# small tool to make du default to -h and -d1 | |
# also to sort output | |
if [ "$#" -ne 1 ]; then | |
du -hd1 . | sort -h; | |
else | |
du -h $@ | sort -h; | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment