summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2023-09-14 20:31:52 +0200
committerAlan Pearce2023-09-14 20:31:52 +0200
commit49b47f7785bde886230d610a79e404fcd03a1391 (patch)
treeeb240ccfff6e8851e70b4d79096eccbee9a47c00
parentfc0cc303130486a444d36b6c40403d501d81ee88 (diff)
downloadnixfiles-49b47f7785bde886230d610a79e404fcd03a1391.tar.lz
nixfiles-49b47f7785bde886230d610a79e404fcd03a1391.tar.zst
nixfiles-49b47f7785bde886230d610a79e404fcd03a1391.zip
shell: add aliases for xh with headers (both request and response)
-rw-r--r--user/settings/shell.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/user/settings/shell.nix b/user/settings/shell.nix
index 0f31a632..1c267713 100644
--- a/user/settings/shell.nix
+++ b/user/settings/shell.nix
@@ -34,6 +34,9 @@ in
       http = "xh";
       https = "xh --default-scheme https";
       xhs = "xh --default-scheme https";
+      xhh = "xh --print Hh";
+      xhhs = "xh --print Hh --default-scheme https";
+      xhsh = "xh --print Hh --default-scheme https";
 
       hist-freq-lines = lib.mkDefault "fc -l -10000 | cut -d' ' -f4- | sort | uniq -c | sort -gr | head -n100 | less";
       hist-freq-commands = lib.mkDefault "fc -l -10000 | cut -d' ' -f4 | sort | uniq -c | sort -gr | head -n100 | less";