Skip to content

markyangcc/grubby-bash-completion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

grubby-bash-completion

Bash completion for the grubby command, zsh should works with bashcompinit

The grubby tool provides many options for managing boot entries. However, in most day-to-day scenarios, only a subset of them are commonly used. This completion script focuses on commands that are most relevant to switching kernels and managing kernel parameters.

👉 README [README]|[中文]

Installation

Copy the completion script to bash-completion directory and source it,

cp grubby-completion.bash /usr/share/bash-completion/completions/grubby

source /usr/share/bash-completion/completions/grubby

Verify that completion works by typing,

grubby --<TAB>

Zsh Support

This script can also be used in zsh through bashcompinit. Add the following to your ~/.zshrc,

# Enable Zsh's completion system
autoload -Uz compinit && compinit

# Enable Bash completion compatibility
autoload bashcompinit && bashcompinit

# Source grubby Bash completion script
source /usr/share/bash-completion/completions/grubby

Supported commands

grubby --default-kernel
grubby --default-index
grubby --default-title

grubby --info ALL | DEFAULT | [KERNEL]

grubby --make-default
grubby --set-default=[KERNEL]
grubby --set-default-index=[KERNEL-ENTRY-INDEX]

grubby --update-kernel=[KERNEL] --args=[ARGS-TO-ADD]
grubby --update-kernel=[KERNEL] --remove-args=[ARGS-TO-REMOVE]

About

bash-completion for grubby command

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages