Commit 2264c513 authored by ripdog's avatar ripdog
Browse files

Update plugins/extract/extract.plugin.zsh

Cause unrar to preserve directory structure. (Why is only unrar different?!)
parent fce68bbb
...@@ -53,7 +53,7 @@ function extract() { ...@@ -53,7 +53,7 @@ function extract() {
(*.lzma) unlzma "$1" ;; (*.lzma) unlzma "$1" ;;
(*.Z) uncompress "$1" ;; (*.Z) uncompress "$1" ;;
(*.zip) unzip "$1" -d $extract_dir ;; (*.zip) unzip "$1" -d $extract_dir ;;
(*.rar) unrar e -ad "$1" ;; (*.rar) unrar x -ad "$1" ;;
(*.7z) 7za x "$1" ;; (*.7z) 7za x "$1" ;;
(*.deb) (*.deb)
mkdir -p "$extract_dir/control" mkdir -p "$extract_dir/control"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment