bash-completion: kernel-install: update default path to kernel image
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 10 Jan 2018 07:52:27 +0000 (16:52 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 10 Jan 2018 14:16:29 +0000 (23:16 +0900)
shell-completion/bash/kernel-install

index 5a78528..f291d3e 100644 (file)
@@ -38,7 +38,7 @@ _kernel_install() {
                 fi
                 ;;
             3)
-                [[ "$cur" ]] || cur=/boot/vmlinuz-${COMP_WORDS[2]}
+                [[ "$cur" ]] || cur=/lib/modules/${COMP_WORDS[2]}/vmlinuz
                 comps=$(compgen -f -- "$cur")
                 compopt -o filenames
                 ;;