feat(cli): add basic bash completion for portprotonqt

Signed-off-by: Boris Yumankulov <boria138@altlinux.org>
This commit is contained in:
2025-06-23 12:38:12 +05:00
parent 0957ff27fb
commit d33ddc0e3c
3 changed files with 21 additions and 0 deletions

View 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