From: Samir Benmendil Date: Thu, 20 May 2021 13:41:42 +0000 (+0100) Subject: zsh: unrar full paths rather than all files to same dir X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/9c6b9ea29858077338152e5d96cdbd7b80b8f4fa zsh: unrar full paths rather than all files to same dir --- diff --git a/zsh/functions/ex b/zsh/functions/ex index 24a8e8f..6589350 100644 --- a/zsh/functions/ex +++ b/zsh/functions/ex @@ -52,7 +52,7 @@ function ex() { (*.lzma) unlzma "$1" ;; (*.Z) uncompress "$1" ;; (*.zip) unzip "$1" -d $extract_dir ;; - (*.rar) unrar e -ad "$1" ;; + (*.rar) unrar x -ad "$1" ;; (*.7z) 7za x "$1" ;; (*.deb) mkdir -p "$extract_dir/control"