Files
dotfiles/home/fish/functions/fs.fish
2024-07-31 13:11:51 +02:00

14 lines
274 B
Fish

function fs --description "Determine size of a file or total size of a directory"
if du -b /dev/null >/dev/null 2>&1
set arg -sbh
else
set arg -sh
end
if test -n "$argv"
du $arg -- $argv
else
du $arg .[^.]* *
end
end