Created
October 24, 2010 11:39
-
-
Save torsten/643466 to your computer and use it in GitHub Desktop.
.zshrc lines for a "untar" command which automagically unzips .gz and .bz2 tarballs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
untar() { | |
ruby -e 'f=$*[0];exec"tar","#{f=~/gz$/?"z":(f=~/bz2?$/?"j": | |
(raise"Incompatible Archive File"))}vxf",f' -- "$@" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment