diff options
| author | nic <ra@afu.re> | 2024-05-25 16:49:44 -0400 |
|---|---|---|
| committer | nic <ra@afu.re> | 2024-05-25 16:49:44 -0400 |
| commit | 8a05dfe5c7d637129fb10beb9305e16937713a96 (patch) | |
| tree | 06da462bae6326edec12d5de6cec43f1b6f549a9 /.local | |
| parent | 0608dbf9b17d9eefe743874f93de56b0db661fdf (diff) | |
Change vim color scheme ++
Diffstat (limited to '.local')
| -rwxr-xr-x | .local/bin/space | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.local/bin/space b/.local/bin/space new file mode 100755 index 0000000..a8eaa31 --- /dev/null +++ b/.local/bin/space @@ -0,0 +1,12 @@ +#!/bin/sh + +# Check if at least one argument is passed +if [ "$#" -eq 0 ]; then + echo "Usage: $0 <file_or_directory> [<file_or_directory> ...]" + exit 1 +fi + +# Loop through all the arguments and perform 'du -sh' on each +for item in "$@"; do + du -sh "$item" +done | sort -h |
