mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 13:46:41 +00:00
Add support for xz archives to extract shell alias
This commit is contained in:
@@ -59,6 +59,7 @@ function extract () {
|
|||||||
case $1 in
|
case $1 in
|
||||||
*.tar.bz2) tar xvjf $1 ;;
|
*.tar.bz2) tar xvjf $1 ;;
|
||||||
*.tar.gz) tar xvzf $1 ;;
|
*.tar.gz) tar xvzf $1 ;;
|
||||||
|
*.tar.xz) tar xvJf $1 ;;
|
||||||
*.bz2) bunzip2 $1 ;;
|
*.bz2) bunzip2 $1 ;;
|
||||||
*.rar) unrar e $1 ;;
|
*.rar) unrar e $1 ;;
|
||||||
*.gz) gunzip $1 ;;
|
*.gz) gunzip $1 ;;
|
||||||
@@ -66,6 +67,7 @@ function extract () {
|
|||||||
*.tbz2) tar xvjf $1 ;;
|
*.tbz2) tar xvjf $1 ;;
|
||||||
*.tbz) tar xvjf $1 ;;
|
*.tbz) tar xvjf $1 ;;
|
||||||
*.tgz) tar xvzf $1 ;;
|
*.tgz) tar xvzf $1 ;;
|
||||||
|
*.txz) tar xvJf $1 ;;
|
||||||
*.zip) unzip $1 ;;
|
*.zip) unzip $1 ;;
|
||||||
*.Z) uncompress $1 ;;
|
*.Z) uncompress $1 ;;
|
||||||
*.7z) 7z x $1 ;;
|
*.7z) 7z x $1 ;;
|
||||||
|
|||||||
Reference in New Issue
Block a user