mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 09:39:52 +08:00
9c327b19a6
New fish_indent does that too, so this will make any future reformatting diffs smaller. Done using either of: perl -pi -e 'undef $/; s/\n*$/\n/' share/**.fish kak -n -f '<a-/>\n*<ret>d' share/**.fish
26 lines
2.1 KiB
Fish
26 lines
2.1 KiB
Fish
# Archlinux's mkinitcpio (https://projects.archlinux.org/mkinitcpio.git/)
|
|
|
|
function __fish_mkinitcpio_complete_hooks
|
|
mkinitcpio -L | string match -r '^[a-z].*$' | string split \t | string match -r '.+' | string replace -ra '[¹²³]' '\tdeprecated'
|
|
end
|
|
|
|
complete -c mkinitcpio -s A -l addhooks -d 'Add the additional hooks to the image' -a "(__fish_mkinitcpio_complete_hooks)" -f
|
|
complete -c mkinitcpio -s c -l config -d 'Use config file to generate the ramdisk'
|
|
complete -c mkinitcpio -s d -l generatedir -d 'Set directory as the location where the initramfs is built'
|
|
complete -c mkinitcpio -s g -l generate -d 'Generate a CPIO image as filename'
|
|
complete -c mkinitcpio -s H -l hookhelp -d 'Output help for a hook' -a "(__fish_mkinitcpio_complete_hooks)" -f
|
|
complete -c mkinitcpio -s h -l help -d 'Output a short overview of available command-line switches' -f
|
|
complete -c mkinitcpio -s k -l kernel -d 'Use kernelversion, instead of the current running kernel' -a "(string match -v '*extramodules*' -- /usr/lib/modules/* | string replace -r '.*/' '')" -f
|
|
complete -c mkinitcpio -s L -l listhooks -d 'List all available hooks' -f
|
|
complete -c mkinitcpio -s M -l automods -d 'Display modules found via autodetection' -f
|
|
complete -c mkinitcpio -s n -l nocolor -d 'Disable color output' -f
|
|
complete -c mkinitcpio -s P -l allpresets -d 'Process all presets contained in /etc/mkinitcpio.d' -f
|
|
complete -c mkinitcpio -s p -l preset -d 'Build initramfs image(s) according to specified preset'
|
|
complete -c mkinitcpio -s r -l moduleroot -d 'Specifies the root directory to find modules in'
|
|
complete -c mkinitcpio -s S -l skiphooks -d 'Skip hooks when generating the image' -a "(__fish_mkinitcpio_complete_hooks)" -f
|
|
complete -c mkinitcpio -s s -l save -d 'Saves the build directory for the initial ramdisk'
|
|
complete -c mkinitcpio -s t -l builddir -d 'Use tmpdir as the temporary build directory instead of /tmp'
|
|
complete -c mkinitcpio -s V -l version -d 'Display version information'
|
|
complete -c mkinitcpio -s v -l verbose -d 'Verbose output'
|
|
complete -c mkinitcpio -s z -l compress -d 'Override the compression method with the compress program'
|