From f8e2a7d135a10a8c68203e093c1b19c946d7a8d4 Mon Sep 17 00:00:00 2001 From: Mathias Bynens Date: Sat, 22 Oct 2011 12:31:02 +0300 Subject: Use `hd` alias for canonical hex dump. Thanks, @janmoesen! --- .aliases | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.aliases b/.aliases index 668fe1b..6e64965 100644 --- a/.aliases +++ b/.aliases @@ -29,6 +29,9 @@ alias httpdump="sudo tcpdump -i en1 -n -s 0 -w - | grep -a -o -E \"Host\: .*|GET # Start an HTTP server from a directory alias server="open http://localhost:8080/ && python -m SimpleHTTPServer 8080" +# Canonical hex dump; some systems have this symlinked +type -t hd > /dev/null || alias hd='hexdump -C' + # Trim new lines and copy to clipboard alias c="tr -d '\n' | pbcopy" -- cgit v1.2.3