dotfiles/termscripts/zip.sh

11 lines
128 B
Bash
Raw Normal View History

#!/usr/bin/env sh
if [ $# -eq 1 ]; then
name="$1"
else
name="$(basename "$(pwd)")"
fi
files="$@"
zip $name.zip $files