From b2643850691f9914a24e040384f678dc14ec2108 Mon Sep 17 00:00:00 2001
From: Justin Hileman <justin@justinhileman.info>
Date: Sun, 31 May 2015 08:30:48 -0700
Subject: [PATCH] [split] Move extract plugin to oh-my-fish/plugin-extract

https://github.com/oh-my-fish/plugin-extract
---
 plugins/extract/extract.fish | 25 -------------------------
 1 file changed, 25 deletions(-)
 delete mode 100644 plugins/extract/extract.fish

diff --git a/plugins/extract/extract.fish b/plugins/extract/extract.fish
deleted file mode 100644
index a775ab8..0000000
--- a/plugins/extract/extract.fish
+++ /dev/null
@@ -1,25 +0,0 @@
-# Taken from: https://github.com/dideler/dotfiles/blob/master/functions/extract.fish
-
-function extract --description "Expand or extract bundled & compressed files"
-  set --local ext (echo $argv[1] | awk -F. '{print $NF}')
-  switch $ext
-    case tar  # non-compressed, just bundled
-      tar -xvf $argv[1]
-    case gz
-      if test (echo $argv[1] | awk -F. '{print $(NF-1)}') = tar  # tar bundle compressed with gzip
-        tar -zxvf $argv[1]
-      else  # single gzip
-        gunzip $argv[1]
-      end
-    case tgz  # same as tar.gz
-      tar -zxvf $argv[1]
-    case bz2  # tar compressed with bzip2
-      tar -jxvf $argv[1]
-    case rar
-      unrar x $argv[1]
-    case zip
-      unzip $argv[1]
-    case '*'
-      echo "unknown extension"
-  end
-end
-- 
GitLab