Permalink
Browse files

archive: add archive:list:zip

  • Loading branch information...
1 parent 4422e6f commit a339c09a41d1e4fab7c8d9fcf281121a439045e1 @shurizzle shurizzle committed Nov 20, 2012
Showing with 13 additions and 0 deletions.
  1. +13 −0 archive/functions/archive:list:zip
@@ -0,0 +1,13 @@
+if (( $+commands[unzip] )); then
+ local v=
+ if [[ "$1" == '-v' || "$1" == '--verbose' ]]; then
+ v=v
+ shift
+ fi
+ unzip -l$v "$1"
+else
+ warn 'archive:list: you have to install unzip'
+ return 1
+fi
+
+# vim: ft=zsh sts=2 ts=2 sw=2 et fdm=marker fmr={{{,}}}

0 comments on commit a339c09

Please sign in to comment.