dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit da5c7ea15ff39b34936c34f5ec59447e59f6f977
parent 9900baca046107e978dd72610406dad56cd8d4a3
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Sat, 19 Oct 2019 13:38:11 -0400

httpc: allow setting host

Former-commit-id: 71c1daa11158f1a43249ebc847e6661bab444c6c
Diffstat:
Mscripts/httpc | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/scripts/httpc b/scripts/httpc @@ -4,8 +4,10 @@ if ! command -v http &> /dev/null; then exit 1 fi set -e +host="${1:-localhost:8000}" +echo "HTTPie console on $host" while :; do echo -n "http> " read -a cmd - http "${cmd[0]}" "http://localhost:8000${cmd[1]}" + http "${cmd[0]}" "http://$host${cmd[1]}" "${cmd[@]:2}" done