From 72d0498db031c082559f1746d10e275d600e4f6b Mon Sep 17 00:00:00 2001 From: David Runge Date: Thu, 5 Nov 2015 13:24:14 +0100 Subject: .zsh.after/functions.zsh: Adding decompression option for .deb files. Changing to standard way of creating tar.xz. --- .zsh.after/functions.zsh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.zsh.after/functions.zsh b/.zsh.after/functions.zsh index 91d21f8..930815e 100644 --- a/.zsh.after/functions.zsh +++ b/.zsh.after/functions.zsh @@ -192,7 +192,7 @@ tar_tlz() { tar --lzma -cvf $1.tlz $1 } tar_xz() { - tar cf - $1| xz -4e > $1.tar.xz + tar cvfJ $1.tar.xz $1 } #Decompress any given compressed file @@ -202,6 +202,8 @@ if [ -f $1 ] ; then *.tar.bz2) tar xvjf $1 ;; *.tar.gz) tar xvzf $1 ;; *.bz2) bunzip2 $1 ;; + *.deb) ar vx $1 + ;; *.rar) unrar x $1 ;; *.pgp) gpg -o ${1%".pgp"} -d $1 ;; *.gpg) gpg -o ${1%".gpg"} -d $1 ;; -- cgit v1.2.3-70-g09d2