shitbox/pkg/usr/share/nu/completions/head.nu

22 lines
733 B
Plaintext

module completions {
def "nu-complete head color" [] {
[ "always" "ansi" "auto" "never" ]
}
# Display first lines of a file
export extern head [
...FILES: string # The input file to use
--bytes(-c) # Count bytes instead of lines
--quiet(-q) # Disable printing a header. Overrides -c
--verbose(-v) # Each file is preceded by a header consisting of the string "==> XXX <==" where "XXX" is the name of the file.
--lines(-n): string # Count n number of lines (or bytes if -c is specified).
--color(-C): string@"nu-complete head color"
-1: string
--help(-h) # Print help (see more with '--help')
]
}
use completions *