1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-07-02 01:39:25 +00:00

archive: add support for *.jar files (#1302)

This commit is contained in:
Khai Do
2017-04-17 22:04:28 -07:00
committed by Kaleb Elwert
parent c38c2dd909
commit 7242b4ed49
5 changed files with 5 additions and 5 deletions

View File

@ -54,7 +54,7 @@ while (( $# > 0 )); do
(*.xz) unxz "$1" ;;
(*.lzma) unlzma "$1" ;;
(*.Z) uncompress "$1" ;;
(*.zip) unzip "$1" -d $extract_dir ;;
(*.zip|*.jar) unzip "$1" -d $extract_dir ;;
(*.rar) unrar &> /dev/null \
&& unrar x -ad "$1" \
|| rar x -ad "$1" ;;