about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDavid Morgan <david.morgan@gmail.com>2016-04-15 04:01:46 -0400
committerDavid Morgan <david.morgan@gmail.com>2016-04-15 04:01:46 -0400
commit84304cf45b8ebae22027e50809755bf3c15dd1cc (patch)
tree7db70d6440f8cf19d42a9ef637947d875a423dc5
parentade306101be402e39d4b69cf2088fdf63d95fd02 (diff)
downloaddotfiles-84304cf45b8ebae22027e50809755bf3c15dd1cc.tar.gz
Fix problem with fetch/wget detection
-rw-r--r--.bashrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/.bashrc b/.bashrc
index 83028f5..8d1a61a 100644
--- a/.bashrc
+++ b/.bashrc
@@ -190,7 +190,7 @@ alias trunc="colrm 80"
 
 alias pc="${HOME}/bin/pocket-cli.py"
 
-[ -x "$(command -v wget)" ] || alias fetch="wget"
+[ ! -x "$(command -v fetch)" -a  -x "$(command -v wget)"  ] && alias fetch="wget"
 [ -f /etc/debian_version ] && alias psearch="apt-cache search"
 
 #alias esv='diatheke -b ESV -k'