diff options
author | David Runge <dave@sleepmap.de> | 2015-11-05 13:24:14 +0100 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2015-11-05 13:24:14 +0100 |
commit | 72d0498db031c082559f1746d10e275d600e4f6b (patch) | |
tree | fc65956e514fe80f372b582229ff8111b0fa1daa | |
parent | 88db13e22da239a0ada13c0fe6486e42673bb181 (diff) | |
download | dotfiles-72d0498db031c082559f1746d10e275d600e4f6b.tar.gz dotfiles-72d0498db031c082559f1746d10e275d600e4f6b.tar.bz2 dotfiles-72d0498db031c082559f1746d10e275d600e4f6b.tar.xz dotfiles-72d0498db031c082559f1746d10e275d600e4f6b.zip |
.zsh.after/functions.zsh: Adding decompression option for .deb files. Changing to standard way of creating tar.xz.
-rw-r--r-- | .zsh.after/functions.zsh | 4 |
1 files changed, 3 insertions, 1 deletions
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 ;; |