summaryrefslogtreecommitdiff
path: root/shell-completion/zsh/_kernel-install
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2014-02-06 18:15:47 +0100
committerTom Gundersen <teg@jklm.no>2014-02-07 15:48:35 +0100
commitd72143bad46b51fc0bbedf01ff92aea8b07afac6 (patch)
tree004be27eacd0aabf4226cd289c595382f297342b /shell-completion/zsh/_kernel-install
parenta50df72b37ce2a7caf7775c70d18c3f9504b9e80 (diff)
zsh-completions: kernel-install - only show existing kernels for 'remove'
When we remove a kernel, we don't remove the modules, so don't look at the modules directory to find installed kernels.
Diffstat (limited to 'shell-completion/zsh/_kernel-install')
-rw-r--r--shell-completion/zsh/_kernel-install2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell-completion/zsh/_kernel-install b/shell-completion/zsh/_kernel-install
index 065518834c..4fdd3a4ae7 100644
--- a/shell-completion/zsh/_kernel-install
+++ b/shell-completion/zsh/_kernel-install
@@ -12,7 +12,7 @@ _kernels(){
read _MACHINE_ID < /etc/machine-id
_kernel=( /lib/modules/[0-9]* )
if [[ "$cmd" == "remove" && -n "$_MACHINE_ID" ]]; then
- _kernel=( /lib/modules/[0-9]* "/boot/$_MACHINE_ID"/[0-9]* )
+ _kernel=( "/boot/$_MACHINE_ID"/[0-9]* )
fi
_kernel=( ${_kernel##*/} )
_describe "installed kernels" _kernel