mirror of
https://github.com/endeavouros-team/eos-bash-shared.git
synced 2026-06-13 01:34:36 +00:00
17 lines
448 B
Bash
17 lines
448 B
Bash
# bash completion for show-location-info -*- shell-script -*-
|
|
|
|
_show-location-info_complete() {
|
|
COMPREPLY=( $(compgen -W "$1" -- "$cur") )
|
|
[[ $COMPREPLY == *= ]] && compopt -o nospace
|
|
compopt -o nosort
|
|
}
|
|
|
|
_show-location-info_()
|
|
{
|
|
local cur prev #words cword split
|
|
_init_completion -s || return
|
|
|
|
_show-location-info_complete "$(show-location-info --dump-all)"
|
|
}
|
|
complete -F _show-location-info_ show-location-info
|