Add completion for flatpak enter and kill

This commit is contained in:
Ian Brunelli 2020-02-12 16:39:50 -03:00 committed by Fabian Homborg
parent cd2be9c22f
commit f247bb8a14

View file

@ -59,6 +59,7 @@ complete -f -c flatpak -n "not __fish_seen_subcommand_from $commands" -a repo -d
if test $flatversion -ge 1.2 2>/dev/null
complete -f -c flatpak -n "__fish_seen_subcommand_from run" -a "(flatpak list --app --columns=application,name)"
complete -f -c flatpak -n "__fish_seen_subcommand_from info uninstall" -a "(flatpak list --columns=application,name)"
complete -f -c flatpak -n "__fish_seen_subcommand_from enter kill" -a "(flatpak ps --columns=instance,application)"
complete -f -c flatpak -n "__fish_seen_subcommand_from remote-info remote-ls remote-modify remote-delete" -a "(flatpak remotes --columns=name)"
else
complete -f -c flatpak -n "__fish_seen_subcommand_from run" -a "(flatpak list --app | string match -r '\S+')"