1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-22 05:40:08 +00:00

Support for more archive formats.

This commit is contained in:
SuprDewd 2010-12-25 13:28:16 +00:00
parent ff0b25b745
commit f0136f2aec

View file

@ -43,6 +43,8 @@ function extract() {
case $1 in
*.tar.bz2) tar xvjf $1;;
*.tar.gz) tar xvzf $1;;
*.tar.xz) tar xvJf $1;;
*.tar.lzma) tar --lzma -xvf $1;;
*.bz2) bunzip $1;;
*.rar) unrar $1;;
*.gz) gunzip $1;;