diff options
Diffstat (limited to 'etc/functions')
-rw-r--r-- | etc/functions/extr | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/functions/extr b/etc/functions/extr index 2ba4d90..b3d5f33 100644 --- a/etc/functions/extr +++ b/etc/functions/extr @@ -22,6 +22,8 @@ if [[ -f $1 ]] { *.zip) unzip $1 ;; *.Z) uncompress $1 ;; *.shar) confirm_shar && sh $1 ;; + *.cpio) cpio --no-absolute-filenames -idv < $1 ;; + *.lzma) unlzma $1 ;; *) echo "Unknown archive type: $1"; return 2 ;; esac } else { |