From 5b604c37c6c67e18e7c3e9aee6c88a8c22b98345 Mon Sep 17 00:00:00 2001 From: ash Date: Tue, 17 Dec 2024 17:30:35 +0000 Subject: [PATCH] Fix `https` behaviour in fish (#1611) Using the name `https` to invoke HTTPie should make HTTPie default to the https:// scheme, but using a fish function to replace invocations of `https` with invocations of `http` defeats this behaviour. Instead, just tell fish to complete `https` in the same way as `http`. --- extras/httpie-completion.fish | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/extras/httpie-completion.fish b/extras/httpie-completion.fish index 102399a4..c0cfc20a 100644 --- a/extras/httpie-completion.fish +++ b/extras/httpie-completion.fish @@ -116,6 +116,4 @@ complete -c http -l debug -d 'Show debugging output' # Alias for https to http -function https --wraps http - http $argv; -end +complete -c https -w http