mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-15 12:54:15 +01:00
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:
parent
9fe88d0039
commit
917e50c37f
@ -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'"
|
||||
|
@ -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"
|
||||
]
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
{
|
||||
"headers": {
|
||||
"User-Agent": ""
|
||||
}
|
||||
}
|
@ -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
|
Loading…
Reference in New Issue
Block a user