#compdef kernel-install _images(){ if [[ "$words[2]" == "remove" ]]; then _message 'No more options' else _path_files -W /boot/ -P /boot/ -g "vmlinuz-*" fi } _kernels(){ read _MACHINE_ID < /etc/machine-id _kernel=( /lib/modules/[0-9]* ) if [[ "$cmd" == "remove" && -n "$_MACHINE_ID" ]]; then _kernel=( "/boot/$_MACHINE_ID"/[0-9]* ) fi _kernel=( ${_kernel##*/} ) _describe "installed kernels" _kernel } _arguments \ '1::add or remove:(add remove)' \ '2::kernel versions:_kernels' \ '3::kernel images:_images' #vim: set ft=zsh sw=4 ts=4 et
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
_bootctl | File | 721 B | 0644 |
|
_coredumpctl | File | 1.47 KB | 0644 |
|
_hostnamectl | File | 2.17 KB | 0644 |
|
_journalctl | File | 4.56 KB | 0644 |
|
_kernel-install | File | 614 B | 0644 |
|
_localectl | File | 3.46 KB | 0644 |
|
_loginctl | File | 4.04 KB | 0644 |
|
_machinectl | File | 1.67 KB | 0644 |
|
_sd_hosts_or_user_at_host | File | 79 B | 0644 |
|
_sd_machines | File | 318 B | 0644 |
|
_sd_outputmodes | File | 202 B | 0644 |
|
_sd_unit_files | File | 235 B | 0644 |
|
_systemctl | File | 14.63 KB | 0644 |
|
_systemd | File | 3.69 KB | 0644 |
|
_systemd-analyze | File | 2.33 KB | 0644 |
|
_systemd-delta | File | 527 B | 0644 |
|
_systemd-inhibit | File | 958 B | 0644 |
|
_systemd-nspawn | File | 3.57 KB | 0644 |
|
_systemd-run | File | 1.97 KB | 0644 |
|
_systemd-tmpfiles | File | 699 B | 0644 |
|
_timedatectl | File | 1.96 KB | 0644 |
|
_udevadm | File | 5.81 KB | 0644 |
|