Files
fish-config/functions/dusize.fish
T
rootiest 02c46ebea7 docs(functions): merge manual-only examples and notes into headers
Folds the examples Section 5 carried but the headers did not into each
function's `# EXAMPLE`, and moves the three lines that only looked like
examples -- the two typo-abbreviation notes and rm's /usr/bin/rm fallback --
into `# NOTES`, the label already in use.

Also corrects gi's synopsis, which omitted -l, and documents yt-dlp's
--no-embed-thumbnail in `# ARGUMENTS`.
2026-07-26 03:47:25 -04:00

23 lines
542 B
Fish

# Copyright (C) 2026 Rootiest
# SPDX-License-Identifier: AGPL-3.0-or-later
# CATEGORY
# 01-file-and-directory
#
# SYNOPSIS
# dusize [dir]
#
# DESCRIPTION
# Shows a human-readable disk usage summary using du -sh. Defaults to the
# current directory if no argument is given.
#
# ARGUMENTS
# dir Directory to summarize (defaults to current directory)
#
# EXAMPLE
# dusize ~/Downloads
# dusize ~/Videos
function dusize --wraps='du' --description 'alias dusize=du'
du -sh (test -n "$argv[1]"; and echo $argv[1]; or echo .)
end