~ted/ubuntu-app-launch/user-tools

« back to all changes in this revision

Viewing changes to tools/completions/ubuntu-app-info

  • Committer: Ted Gould
  • Date: 2017-03-24 18:37:29 UTC
  • Revision ID: ted@gould.cx-20170324183729-ubp581319u935u2h
Adding the other appid based completions

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
_have ubuntu-app-info &&
 
2
_have ubuntu-app-launch-appids &&
 
3
_ubuntu_app_info()
 
4
{
 
5
        local cur=${COMP_WORDS[COMP_CWORD]}
 
6
        COMPREPLY=($(compgen -W "`ubuntu-app-launch-appids`" -- $cur))
 
7
} &&
 
8
complete -F _ubuntu_app_info -o default ubuntu-app-info