Updated extract script

This commit is contained in:
Veit Heller
2014-07-05 03:02:44 +02:00
parent 00dca735da
commit d8f9a4c972
2 changed files with 10 additions and 2 deletions

6
zshrc
View File

@@ -73,7 +73,11 @@ extract(){
*.tar) tar xf $1 ;;
*.tbz2) tar xjf $1 ;;
*.tgz) tar xzf $1 ;;
*.zip) unzip $1 ;;
*.zip) if [ -n $2 ] ; then
unzip $1 -d $2
else
unzip $1
fi;;
*.Z) uncompress $1 ;;
*.7z) 7z x $1 ;;
*) echo "'$1' cannot be extracted via extract()" ;;