aboutsummaryrefslogtreecommitdiffstats
path: root/.aliases
diff options
context:
space:
mode:
Diffstat (limited to '.aliases')
-rw-r--r--.aliases3
1 files changed, 3 insertions, 0 deletions
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"