bash-completion: kernel-install: update default path to kernel image

This commit is contained in:
Yu Watanabe 2018-01-10 16:52:27 +09:00
parent 41053e9bdf
commit 29e08b9e9e

View 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
;;