Skip to content

Instantly share code, notes, and snippets.

@DrAzraelTod
Created January 10, 2022 14:17
Show Gist options
  • Save DrAzraelTod/3f7c4ed8c6a4e9eb47ab0b22e7ae6d3c to your computer and use it in GitHub Desktop.
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
#!/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