meta: Replace httpie config with fish functions

This simplifies our dotfiles a bit since we no longer need to worry
about stowing a separate httpie config.
This commit is contained in:
Donovan Glover 2022-07-29 17:02:55 -04:00
parent 9fe88d0039
commit 917e50c37f
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
4 changed files with 9 additions and 33 deletions

View File

@ -31,6 +31,15 @@ set -x -U LESS_TERMCAP_us (printf "\e[01;32m")
# Always use the default keybindings in fish
fish_default_key_bindings
# Use https by default without a user agent for httpie
function http
/usr/bin/https "$argv" "User-Agent: "
end
function https
/usr/bin/https "$argv" "User-Agent: "
end
# Use exa as a drop-in replacement for ls and tree (faster, more colors, etc.)
alias ls="exa --group-directories-first -I 'lost+found'"
alias tree="exa --group-directories-first --long --tree -I 'node_modules|.git|public|lost+found'"

View File

@ -1,11 +0,0 @@
{
"__meta__": {
"about": "HTTPie configuration file",
"help": "https://httpie.org/doc#config",
"httpie": "1.0.2"
},
"default_options": [
"--session-read-only",
"~/.httpie/headers.json"
]
}

View File

@ -1,5 +0,0 @@
{
"headers": {
"User-Agent": ""
}
}

View File

@ -1,17 +0,0 @@
# httpie
[httpie][httpie] is an alternative to curl and wget.
## Use Cases
httpie can be used to:
- View HTTP request and response headers
- Print, with syntax highlighting, the response body of a URL
- Download any kind of content from a given URL
You should not use httpie if:
- You are working on a server that already has curl or wget available
[httpie]: https://github.com/jakubroztocil/httpie