aboutsummaryrefslogtreecommitdiffstats
path: root/.aliases
diff options
context:
space:
mode:
authorMathias Bynens <mathias@qiwi.be>2011-10-22 12:31:02 +0300
committerMathias Bynens <mathias@qiwi.be>2011-10-22 12:31:02 +0300
commitf8e2a7d135a10a8c68203e093c1b19c946d7a8d4 (patch)
tree662f21f195ec0f5d9c5d35fd4b970e63325ccc3b /.aliases
parent3d791926a65118c9119f1f0506e79351dff5dbb7 (diff)
downloaddotfiles-f8e2a7d135a10a8c68203e093c1b19c946d7a8d4.tar.gz
dotfiles-f8e2a7d135a10a8c68203e093c1b19c946d7a8d4.tar.bz2
dotfiles-f8e2a7d135a10a8c68203e093c1b19c946d7a8d4.zip
Use `hd` alias for canonical hex dump. Thanks, @janmoesen!
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"