From cff45276b56d7acb3ba7ef1a34a4f715b8368284 Mon Sep 17 00:00:00 2001 From: Gaurav Date: Mon, 25 Oct 2021 20:06:34 +0530 Subject: [PATCH] Fix Snap autocompletion (#1189) --- extras/httpie-completion.bash | 2 +- snapcraft.yaml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/extras/httpie-completion.bash b/extras/httpie-completion.bash index 76af2deb..6abbc217 100644 --- a/extras/httpie-completion.bash +++ b/extras/httpie-completion.bash @@ -7,7 +7,7 @@ _http_complete() { fi } -complete -o default -F _http_complete http +complete -o default -F _http_complete http httpie.http httpie.https https _http_complete_options() { local cur_word=$1 diff --git a/snapcraft.yaml b/snapcraft.yaml index 0b9b07d8..ce4fe79b 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -81,7 +81,7 @@ parts: python -m compileall -f $packages echo "Copying extra files ..." - cp $SNAPCRAFT_PART_SRC/extras/httpie-completion.bash $SNAPCRAFT_PRIME/bin/ + cp $SNAPCRAFT_PART_SRC/extras/httpie-completion.bash $SNAPCRAFT_PRIME/ plugs: dot-config-httpie: @@ -102,13 +102,13 @@ apps: - home - network - removable-media - completer: bin/httpie-completion.bash + completer: httpie-completion.bash environment: LC_ALL: C.UTF-8 https: command: bin/https plugs: *plugs - completer: bin/httpie-completion.bash + completer: httpie-completion.bash environment: LC_ALL: C.UTF-8