summary refs log tree commit diff
path: root/.vim/after/snippets/sh.snippets
diff options
context:
space:
mode:
Diffstat (limited to '.vim/after/snippets/sh.snippets')
-rw-r--r--.vim/after/snippets/sh.snippets25
1 files changed, 0 insertions, 25 deletions
diff --git a/.vim/after/snippets/sh.snippets b/.vim/after/snippets/sh.snippets
index 8973dd5..d87442e 100644
--- a/.vim/after/snippets/sh.snippets
+++ b/.vim/after/snippets/sh.snippets
@@ -1,28 +1,3 @@
-snippet usage "usage"
-	usage() {
-		printf "usage: %s" "$(basename "\$0")\n"
-		printf "\n"
-		printf "$1\n"
-	}
-	
-	case "\$1" in
-	-h)	usage && exit 0 ;;
-	esac
-	
-	$0
-snippet getopt "while getopts"
-	$2=
-	while getopts $1h opt; do
-		case "$opt" in
-		$1)	$2=1 ;;
-		h|?)	printf "usage: %s [-h]\n" "$(basename "\$0")"
-			printf "\n"
-			printf "  -$1 \t $2\n"
-			printf "\n"
-			exit 2 ;;
-		esac
-	done
-	shift $((OPTIND - 1))
 snippet deps "for app in"
 	# check requirements
 	for tool in $1; do