fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
9c327b19a
master
1# Archlinux's mkinitcpio (https://projects.archlinux.org/mkinitcpio.git/) 2 3function __fish_mkinitcpio_complete_hooks 4mkinitcpio -L| string match -r'^[a-z].*$' | string split\t | string match -r'.+' | string replace -ra'[¹²³]' '\tdeprecated' 5end 6 7complete -c mkinitcpio -s A -l addhooks -d'Add the additional hooks to the image' -a"(__fish_mkinitcpio_complete_hooks)" -f 8complete -c mkinitcpio -s c -l config -d'Use config file to generate the ramdisk' 9complete -c mkinitcpio -s d -l generatedir -d'Set directory as the location where the initramfs is built' 10complete -c mkinitcpio -s g -l generate -d'Generate a CPIO image as filename' 11complete -c mkinitcpio -s H -l hookhelp -d'Output help for a hook' -a"(__fish_mkinitcpio_complete_hooks)" -f 12complete -c mkinitcpio -s h -l help -d'Output a short overview of available command-line switches' -f 13complete -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 14complete -c mkinitcpio -s L -l listhooks -d'List all available hooks' -f 15complete -c mkinitcpio -s M -l automods -d'Display modules found via autodetection' -f 16complete -c mkinitcpio -s n -l nocolor -d'Disable color output' -f 17complete -c mkinitcpio -s P -l allpresets -d'Process all presets contained in /etc/mkinitcpio.d' -f 18complete -c mkinitcpio -s p -l preset -d'Build initramfs image(s) according to specified preset' 19complete -c mkinitcpio -s r -l moduleroot -d'Specifies the root directory to find modules in' 20complete -c mkinitcpio -s S -l skiphooks -d'Skip hooks when generating the image' -a"(__fish_mkinitcpio_complete_hooks)" -f 21complete -c mkinitcpio -s s -l save -d'Saves the build directory for the initial ramdisk' 22complete -c mkinitcpio -s t -l builddir -d'Use tmpdir as the temporary build directory instead of /tmp' 23complete -c mkinitcpio -s V -l version -d'Display version information' 24complete -c mkinitcpio -s v -l verbose -d'Verbose output' 25complete -c mkinitcpio -s z -l compress -d'Override the compression method with the compress program'