From 88ed4809398dce676ba516e2016f8b51d53b4720 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 22 Nov 2017 09:15:07 +0100 Subject: function cleanup --- etc/functions/extract | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 etc/functions/extract (limited to 'etc/functions/extract') diff --git a/etc/functions/extract b/etc/functions/extract deleted file mode 100644 index 53fdc87..0000000 --- a/etc/functions/extract +++ /dev/null @@ -1,24 +0,0 @@ -## vim:ft=zsh -## Extract archives -## Usage: extr - -if [[ -f ${1} ]] { - case ${1} in - *.tar*) tar xvf ${*} ;; - *.ace) unace e ${1} ;; - *.rar) unrar x ${1} ;; - *.deb) ar -x ${1} ;; - *.bz2) bunzip2 ${1} ;; - *.lzh) lha x ${1} ;; - *.gz) gunzip ${1} ;; - *.tar) tar xvf ${*} ;; - *.zip) unzip ${1} ;; - *.Z) uncompress ${1} ;; - *.cpio) cpio --no-absolute-filenames -idv < ${1} ;; - *.lzma) unlzma ${1} ;; - *) echo "Unknown archive type: ${1}"; return 2 ;; - esac -} else { - echo "No such file: ${1}" - return 1 -} -- cgit v1.2.3