aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.zsh.after/functions.zsh4
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 ;;