Adds bash completion to http command line interface. Installing the script: You can copy it to /etc/bash_completion.d/ (or something else on your machine) and source it using following command $ source /etc/profile Now whenever you encounter a "-*" on your CLI, it presents you with the options specified. Couple of things that are still under work: 1) Adding this bash script to setup, so that user won't need manual installation 2) Adding more options for HTTP (GET, PUT and so on) and other options
Inspired by keepachangelog.com
This can help in diagnosing certain issues. For example, if I were trying to use a "http+unix" URL but I don't have #299, then I'll get the following: [marca@marca-mac2 httpie]$ http http+unix://%2Ftmp%2Fprofilesvc.sock/status/pid http: error: ConnectionError: ('Connection aborted.', gaierror(8, 'nodename nor servname provided, or not known')) while doing GET request to URL: http://http+unix//%2Ftmp%2Fprofilesvc.sock/status/pid Having the URL in the error message is super useful here so that I know an extra `http://` is getting prepended and it's not doing what I expected.