1
0
Fork 0
mirror of https://github.com/zdharma-continuum/zinit-configs.git synced 2025-01-31 04:08:16 +01:00
zinit-configs/psprint/functions/g1zip
2019-06-27 12:47:09 +02:00

8 lines
217 B
Bash

# DESC: Creates `basename $(pwd)`-$(date ...) archive
local f=`basename $(pwd)`-`date +%Y%m%d`
command rm -vf "$f".zip
command git archive --output "$f".zip --prefix "$f/" master
command du "$f".zip
# vim:ft=zsh:et