Skip to content

Commit

Permalink
archive: add archive:list:zip
Browse files Browse the repository at this point in the history
  • Loading branch information
shurizzle committed Nov 20, 2012
1 parent 4422e6f commit a339c09
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions 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.