mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-06-14 10:51:41 +00:00
Add rar command to archive module
This addition tries to use the rar command if unrar is not found. Signed-off-by: Sorin Ionescu <sorin.ionescu@gmail.com>
This commit is contained in:
committed by
Sorin Ionescu
parent
fb5b1be345
commit
88408e8bc2
@ -53,7 +53,9 @@ while (( $# > 0 )); do
|
||||
(*.lzma) unlzma "$1" ;;
|
||||
(*.Z) uncompress "$1" ;;
|
||||
(*.zip) unzip "$1" -d $extract_dir ;;
|
||||
(*.rar) unrar e -ad "$1" ;;
|
||||
(*.rar) unrar &> /dev/null \
|
||||
&& unrar e -ad "$1" \
|
||||
|| rar e -ad "$1" ;;
|
||||
(*.7z) 7za x "$1" ;;
|
||||
(*.deb)
|
||||
mkdir -p "$extract_dir/control"
|
||||
|
Reference in New Issue
Block a user