mirror of
https://github.com/dcarrillo/prezto.git
synced 2025-07-02 21:19:25 +00:00
archive: add support for *.jar files (#1302)
This commit is contained in:
@ -40,7 +40,7 @@ while (( $# > 0 )); do
|
||||
&& tar --lzma -t${verbose:+v}f "$1" \
|
||||
|| lzcat "$1" | tar x${verbose:+v}f - ;;
|
||||
(*.tar) tar t${verbose:+v}f "$1" ;;
|
||||
(*.zip) unzip -l${verbose:+v} "$1" ;;
|
||||
(*.zip|*.jar) unzip -l${verbose:+v} "$1" ;;
|
||||
(*.rar) unrar &> /dev/null \
|
||||
&& unrar ${${verbose:+v}:-l} "$1" \
|
||||
|| rar ${${verbose:+v}:-l} "$1" ;;
|
||||
|
Reference in New Issue
Block a user