diff options
author | thibault milan <clawfire@gmail.com> | 2012-08-02 18:13:58 +0300 |
---|---|---|
committer | Mathias Bynens <mathias@qiwi.be> | 2012-08-06 17:35:59 +0200 |
commit | 559ccb5437dfb231fea5496e2d24bb44d1e6247e (patch) | |
tree | a3e9ee9f7b2a30427bd47c65d150119f605db8bb /.aliases | |
parent | 03f1e47c884a55abfcb7f0603c7bd813fc0e4232 (diff) | |
download | dotfiles-559ccb5437dfb231fea5496e2d24bb44d1e6247e.tar.gz dotfiles-559ccb5437dfb231fea5496e2d24bb44d1e6247e.tar.bz2 dotfiles-559ccb5437dfb231fea5496e2d24bb44d1e6247e.zip |
.aliases: Use `command -v` instead of `type -t`
`type -t` is not as portable (i.e., not in POSIX) as `command -v`, and `command -v` also takes aliases and functions into account.
Ref. #109.
Diffstat (limited to '.aliases')
-rw-r--r-- | .aliases | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -63,10 +63,10 @@ alias sniff="sudo ngrep -d 'en1' -t '^(GET|POST) ' 'tcp and port 80'" alias httpdump="sudo tcpdump -i en1 -n -s 0 -w - | grep -a -o -E \"Host\: .*|GET \/.*\"" # Canonical hex dump; some systems have this symlinked -type -t hd > /dev/null || alias hd="hexdump -C" +command -v hd > /dev/null || alias hd="hexdump -C" # OS X has no `md5sum`, so use `md5` as a fallback -type -t md5sum > /dev/null || alias md5sum="md5" +command -v md5sum > /dev/null || alias md5sum="md5" # Trim new lines and copy to clipboard alias c="tr -d '\n' | pbcopy" |