diff options
author | Mathias Bynens <mathias@qiwi.be> | 2011-10-22 12:31:02 +0300 |
---|---|---|
committer | Mathias Bynens <mathias@qiwi.be> | 2011-10-22 12:31:02 +0300 |
commit | f8e2a7d135a10a8c68203e093c1b19c946d7a8d4 (patch) | |
tree | 662f21f195ec0f5d9c5d35fd4b970e63325ccc3b /.aliases | |
parent | 3d791926a65118c9119f1f0506e79351dff5dbb7 (diff) | |
download | dotfiles-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-- | .aliases | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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" |