mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 17:43:44 +08:00
ce245704d7
These were excluded from style.fish
22 lines
1.4 KiB
Fish
22 lines
1.4 KiB
Fish
set -l style 'a\t"number all lines"
|
|
t\t"number only nonempty lines"
|
|
n\t"number no lines"
|
|
p\t"number only lines that match regular expression"'
|
|
|
|
complete -c nl -s b -l body-numbering -d 'use STYLE for numbering body lines' -xa $style
|
|
complete -c nl -s d -l section-delimiter -x -d 'use for separating logical pages'
|
|
complete -c nl -s f -l footer-numbering -d 'use STYLE for numbering footer lines' -xa $style
|
|
complete -c nl -s h -l header-numbering -d 'use STYLE for numbering header lines' -xa $style
|
|
complete -c nl -s i -l line-increment -x -d 'line number increment at each line'
|
|
complete -c nl -s l -l join-blank-lines -x -d 'group of NUMBER empty lines counted as one'
|
|
complete -c nl -s n -l number-format -x -d 'insert line numbers according to FORMAT'
|
|
complete -c nl -s n -l number-format -xa ln -d 'left justified, no leading zeroes'
|
|
complete -c nl -s n -l number-format -xa rn -d 'right justified, no leading zeroes'
|
|
complete -c nl -s n -l number-format -xa rz -d 'right justified, leading zeroes'
|
|
complete -c nl -s p -l no-renumber -d 'do not reset line numbers at logical pages'
|
|
complete -c nl -s s -l number-separator -x -d 'add STRING after (possible) line number'
|
|
complete -c nl -s v -l starting-line-number -x -d 'first line number on each logical page'
|
|
complete -c nl -s w -l number-width -x -d 'use NUMBER columns for line numbers'
|
|
complete -c nl -l help -d 'display this help and exit'
|
|
complete -c nl -l version -d 'output version information and exit'
|