summaryrefslogtreecommitdiff
path: root/completion
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2015-01-23 06:07:18 -0500
committerMatthias Clasen <mclasen@redhat.com>2015-01-23 06:07:18 -0500
commit47f0ff20cde591d3b5faac62794efcdefe97c781 (patch)
tree17048125a272d60a62fe017b66154d450727c0a5 /completion
parentd22f1d01e359461d49ba8940a4d8400f7f4cf247 (diff)
downloadxdg-app-47f0ff20cde591d3b5faac62794efcdefe97c781.tar.gz
Make completion work installed
I only tested this uninstalled, by directly sourcing the completion file, obviously...
Diffstat (limited to 'completion')
-rwxr-xr-xcompletion/xdg-app22
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