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 lrzip support for simple-extract()
[grml-etc-core.git]
/
etc
/
zsh
/
zshrc
diff --git
a/etc/zsh/zshrc
b/etc/zsh/zshrc
index
e21c772
..
03d9c4d
100644
(file)
--- a/
etc/zsh/zshrc
+++ b/
etc/zsh/zshrc
@@
-3569,6
+3569,11
@@
function simple-extract () {
USES_STDIN=true
USES_STDOUT=false
;;
USES_STDIN=true
USES_STDOUT=false
;;
+ *tar.lrz)
+ DECOMP_CMD="lrzuntar"
+ USES_STDIN=false
+ USES_STDOUT=false
+ ;;
*tar)
DECOMP_CMD="tar -xvf -"
USES_STDIN=true
*tar)
DECOMP_CMD="tar -xvf -"
USES_STDIN=true
@@
-3619,6
+3624,11
@@
function simple-extract () {
USES_STDIN=true
USES_STDOUT=true
;;
USES_STDIN=true
USES_STDOUT=true
;;
+ *lrz)
+ DECOMP_CMD="lrunzip -"
+ USES_STDIN=true
+ USES_STDOUT=true
+ ;;
*)
print "ERROR: '$ARCHIVE' has unrecognized archive type." >&2
RC=$((RC+1))
*)
print "ERROR: '$ARCHIVE' has unrecognized archive type." >&2
RC=$((RC+1))