You've already forked httpie-cli
mirror of
https://github.com/httpie/cli.git
synced 2025-08-10 22:42:05 +02:00
Fix Snap autocompletion (#1189)
This commit is contained in:
@@ -7,7 +7,7 @@ _http_complete() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
complete -o default -F _http_complete http
|
complete -o default -F _http_complete http httpie.http httpie.https https
|
||||||
|
|
||||||
_http_complete_options() {
|
_http_complete_options() {
|
||||||
local cur_word=$1
|
local cur_word=$1
|
||||||
|
@@ -81,7 +81,7 @@ parts:
|
|||||||
python -m compileall -f $packages
|
python -m compileall -f $packages
|
||||||
|
|
||||||
echo "Copying extra files ..."
|
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:
|
plugs:
|
||||||
dot-config-httpie:
|
dot-config-httpie:
|
||||||
@@ -102,13 +102,13 @@ apps:
|
|||||||
- home
|
- home
|
||||||
- network
|
- network
|
||||||
- removable-media
|
- removable-media
|
||||||
completer: bin/httpie-completion.bash
|
completer: httpie-completion.bash
|
||||||
environment:
|
environment:
|
||||||
LC_ALL: C.UTF-8
|
LC_ALL: C.UTF-8
|
||||||
|
|
||||||
https:
|
https:
|
||||||
command: bin/https
|
command: bin/https
|
||||||
plugs: *plugs
|
plugs: *plugs
|
||||||
completer: bin/httpie-completion.bash
|
completer: httpie-completion.bash
|
||||||
environment:
|
environment:
|
||||||
LC_ALL: C.UTF-8
|
LC_ALL: C.UTF-8
|
||||||
|
Reference in New Issue
Block a user