From 4cd93b09b3a179515630114078739564a35af38d Mon Sep 17 00:00:00 2001 From: katherine Date: Sun, 19 Feb 2017 03:47:19 -0700 Subject: move remaining funcs from .zshrc everything should be modular now also, cleaned up make-gif to properly parse arguments and check things --- .config/init/funcs/make-gif | 97 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 97 insertions(+) create mode 100755 .config/init/funcs/make-gif (limited to '.config/init/funcs/make-gif') diff --git a/.config/init/funcs/make-gif b/.config/init/funcs/make-gif new file mode 100755 index 0000000..7b3145c --- /dev/null +++ b/.config/init/funcs/make-gif @@ -0,0 +1,97 @@ +#!/usr/bin/env zsh +# export a clip from a video as a gif + +local callstr="$0" + +usage() { + [[ "$1" != "" ]] && echo -e "\e[1;31merror:\e[0m $1\n" + echo "Usage: $callstr [OPTIONS...] " + echo "" + echo "description option default val" + echo "start time -s