feat(cli): add basic bash completion for portprotonqt
Signed-off-by: Boris Yumankulov <boria138@altlinux.org>
This commit is contained in:
19
build-aux/share/bash-completion/completions/portprotonqt
Normal file
19
build-aux/share/bash-completion/completions/portprotonqt
Normal file
@ -0,0 +1,19 @@
|
||||
_portprotonqt() {
|
||||
local cur prev
|
||||
_init_completion || return
|
||||
|
||||
case $prev in
|
||||
--help|-h)
|
||||
return
|
||||
;;
|
||||
esac
|
||||
|
||||
if [[ "$cur" == -* ]]; then
|
||||
COMPREPLY=( $( compgen -W '--fullscreen --session' -- "$cur" ) )
|
||||
return 0
|
||||
fi
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
complete -F _portprotonqt portprotonqt
|
Reference in New Issue
Block a user