diff --git a/install.conf.yaml b/install.conf.yaml index e9384b5..39ae871 100644 --- a/install.conf.yaml +++ b/install.conf.yaml @@ -41,7 +41,6 @@ ~/.profile.d/10-liquidprompt.sh: shell/liquidprompt.sh ~/.profile.d/20-aliases.sh: shell/aliases.sh ~/.profile.d/20-cd.sh: shell/cd.sh - ~/.profile.d/40-extract.sh: shell/extract.sh ~/.profile.d/40-mysqlpw.sh: shell/mysqlpw.sh ~/.profile.d/81-fzf.sh: shell/fzf.sh ~/.profile.d/82-direnv.sh: shell/direnv.sh diff --git a/shell/extract.sh b/shell/extract.sh deleted file mode 100755 index d3f3f19..0000000 --- a/shell/extract.sh +++ /dev/null @@ -1,62 +0,0 @@ -#!/bin/sh - -x() { - for zipfile in "$@"; do - _x_extractor - if [ -f "$zipfile" ]; then - case "$zipfile" in - *.deb) - _x_extractor="ar x" ;; - *.tar.lrz) - _x_extractor="lrztar -d" ;; - *.lrz) - _x_extractor="lrunzip" ;; - *.tar.bz2) - _x_extractor="bsdtar xjf" ;; - *.bz2) - _x_extractor="bunzip2" ;; - *.tar.gz) - _x_extractor="bsdtar xzf" ;; - *.gz) - _x_extractor="gunzip" ;; - *.tar.xz) - _x_extractor="bsdtar Jxf" ;; - *.xz) - _x_extractor="xz -d" ;; - *.rar) - _x_extractor="unrar e" ;; - *.tar) - _x_extractor="bsdtar xf" ;; - *.tbz2) - _x_extractor="bsdtar xjf" ;; - *.tgz) - _x_extractor="bsdtar xzf" ;; - *.zip) - _x_extractor="unzip" ;; - *.Z) - _x_extractor="uncompress" ;; - *.7z) - _x_extractor="7z x" ;; - *) - echo "Cannot extract '$zipfile': No extractor for filetype known ..." >&2 - return 1 - ;; - esac - - if ! command -v "$(echo "$_x_extractor" | awk '{print $1}')" >/dev/null 2>/dev/null; then - echo "Cannot extract '$zipfile': Cannot find extractor '$(echo "$_x_extractor" | awk '{print $1}')'." >&2 - return 1 - fi - - echo "Extracting '$zipfile'..." >&2 - eval "$_x_extractor" "$zipfile" - - elif [ ! -e "$zipfile" ]; then - echo "Cannot extract '$zipfile': File does not exist!" - return 1 - else - echo "Cannot extract '$zipfile': Not a valid file!" - return 1 - fi - done -}