You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mkinitcpio -L| string match -r'^[a-z].*$'| string split\t| string match -r'.+'|string replace -ra'[¹²³]''\tdeprecated'
5
5
end
6
6
7
7
complete-c mkinitcpio -s A -l addhooks -d'Add the additional hooks to the image'-a"(__fish_mkinitcpio_complete_hooks)"-f
@@ -10,8 +10,7 @@ complete -c mkinitcpio -s d -l generatedir -d 'Set directory as the location whe
10
10
complete-c mkinitcpio -s g -l generate -d'Generate a CPIO image as filename'
11
11
complete-c mkinitcpio -s H -l hookhelp -d'Output help for a hook'-a"(__fish_mkinitcpio_complete_hooks)"-f
12
12
complete-c mkinitcpio -s h -lhelp-d'Output a short overview of available command-line switches'-f
13
-
# Since we hardcode the path, we can also hardcode the number of slashes - saves us having to fork a sed
14
-
complete-c mkinitcpio -s k -l kernel -d'Use kernelversion, instead of the current running kernel'-a"(printf "%s\n" /usr/lib/modules/* | grep -v "extramodules" | cut -d"/" -f5)"
13
+
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
15
14
complete-c mkinitcpio -s L -l listhooks -d'List all available hooks'-f
16
15
complete-c mkinitcpio -s M -l automods -d'Display modules found via autodetection'-f
17
16
complete-c mkinitcpio -s n -l nocolor -d'Disable color output'-f
0 commit comments