projects
/
grml-etc-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
zshrc: add support for `fetch' in simple-extract()
[grml-etc-core.git]
/
etc
/
zsh
/
zshrc
diff --git
a/etc/zsh/zshrc
b/etc/zsh/zshrc
index
be62172
..
8e1ec13
100644
(file)
--- a/
etc/zsh/zshrc
+++ b/
etc/zsh/zshrc
@@
-3306,8
+3306,10
@@
simple-extract() {
WGET_CMD="curl -L -s -o -"
elif check_com wget; then
WGET_CMD="wget -q -O -"
WGET_CMD="curl -L -s -o -"
elif check_com wget; then
WGET_CMD="wget -q -O -"
+ elif check_com fetch; then
+ WGET_CMD="fetch -q -o -"
else
else
- print "ERROR: neither wget
nor curl
is installed" >&2
+ print "ERROR: neither wget
, curl nor fetch
is installed" >&2
RC=$((RC+4))
continue
fi
RC=$((RC+4))
continue
fi