feat(cli): add basic bash completion for portprotonqt
Signed-off-by: Boris Yumankulov <boria138@altlinux.org>
This commit is contained in:
@ -65,5 +65,6 @@ cp -r build-aux/share %{buildroot}/usr/
|
|||||||
%{_datadir}/icons/hicolor/scalable/apps/ru.linux_gaming.PortProtonQt.svg
|
%{_datadir}/icons/hicolor/scalable/apps/ru.linux_gaming.PortProtonQt.svg
|
||||||
%{_metainfodir}/ru.linux_gaming.PortProtonQt.metainfo.xml
|
%{_metainfodir}/ru.linux_gaming.PortProtonQt.metainfo.xml
|
||||||
%{_datadir}/applications/ru.linux_gaming.PortProtonQt.desktop
|
%{_datadir}/applications/ru.linux_gaming.PortProtonQt.desktop
|
||||||
|
%{bash_completions_dir}/portprotonqt
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -64,5 +64,6 @@ cp -r build-aux/share %{buildroot}/usr/
|
|||||||
%{_datadir}/icons/hicolor/scalable/apps/ru.linux_gaming.PortProtonQt.svg
|
%{_datadir}/icons/hicolor/scalable/apps/ru.linux_gaming.PortProtonQt.svg
|
||||||
%{_metainfodir}/ru.linux_gaming.PortProtonQt.metainfo.xml
|
%{_metainfodir}/ru.linux_gaming.PortProtonQt.metainfo.xml
|
||||||
%{_datadir}/applications/ru.linux_gaming.PortProtonQt.desktop
|
%{_datadir}/applications/ru.linux_gaming.PortProtonQt.desktop
|
||||||
|
%{bash_completions_dir}/portprotonqt
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
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