diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-01-23 06:07:18 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-01-23 06:07:18 -0500 |
commit | 47f0ff20cde591d3b5faac62794efcdefe97c781 (patch) | |
tree | 17048125a272d60a62fe017b66154d450727c0a5 /completion | |
parent | d22f1d01e359461d49ba8940a4d8400f7f4cf247 (diff) |
Make completion work installed
I only tested this uninstalled, by directly sourcing the
completion file, obviously...
Diffstat (limited to 'completion')
-rwxr-xr-x | completion/xdg-app | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/completion/xdg-app b/completion/xdg-app index 4421adf..d83411f 100755 --- a/completion/xdg-app +++ b/completion/xdg-app @@ -47,7 +47,7 @@ _xdg-app() { comps=$(compgen -A command) ;; --var) - comps=$(./xdg-app $mode list-runtimes) + comps=$(xdg-app $mode list-runtimes) ;; --allow) comps='x11 wayland ipc pulseaudio system-dbus session-dbus network host-fs homedir' @@ -145,14 +145,14 @@ _xdg-app() { else case "$verb" in add-remote|delete-remote|repo-contents) - comps=$(./xdg-app $mode list-remotes) + comps=$(xdg-app $mode list-remotes) ;; install-runtime) if [[ -z $remote ]]; then - comps=$(./xdg-app $mode list-remotes) + comps=$(xdg-app $mode list-remotes) elif [[ -z $name ]]; then - comps=$(./xdg-app $mode repo-contents $remote --runtimes) + comps=$(xdg-app $mode repo-contents $remote --runtimes) else comps='' # FIXME: branches fi @@ -164,7 +164,7 @@ _xdg-app() { update-runtime|uninstall-runtime) if [[ -z $name ]]; then - comps=$(./xdg-app $mode list-runtimes) + comps=$(xdg-app $mode list-runtimes) else comps='' # FIXME: branches fi @@ -172,9 +172,9 @@ _xdg-app() { install-app) if [[ -z $remote ]]; then - comps=$(./xdg-app $mode list-remotes) + comps=$(xdg-app $mode list-remotes) elif [[ -z $name ]]; then - comps=$(./xdg-app $mode repo-contents $remote --apps) + comps=$(xdg-app $mode repo-contents $remote --apps) else comps='' # FIXME: branches fi @@ -182,7 +182,7 @@ _xdg-app() { update-app|uninstall-app) if [[ -z $name ]]; then - comps=$(./xdg-app $mode list-apps) + comps=$(xdg-app $mode list-apps) else comps='' # FIXME: branches fi @@ -190,7 +190,7 @@ _xdg-app() { run) if [[ -z $name ]]; then - comps=$(./xdg-app $mode list-apps) + comps=$(xdg-app $mode list-apps) fi ;; @@ -199,9 +199,9 @@ _xdg-app() { comps='' compopt -o dirnames elif [[ -z $sdk ]]; then - comps="$(./xdg-app list-runtimes) $(./xdg-app --user list-runtimes)" + comps="$(xdg-app list-runtimes) $(xdg-app --user list-runtimes)" elif [[ -z $name ]]; then - comps="$(./xdg-app list-runtimes) $(./xdg-app --user list-runtimes)" + comps="$(xdg-app list-runtimes) $(xdg-app --user list-runtimes)" else comps='' # FIXME: branches fi |