From 5035531ca89023e57cf6e11fc2745af5592a8542 Mon Sep 17 00:00:00 2001 From: ToruIwashita Date: Thu, 11 Sep 2014 13:48:54 +0900 Subject: [PATCH] Changed zsh snippet for function --- snippets/zsh.snippets | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/snippets/zsh.snippets b/snippets/zsh.snippets index 04577a9..fc1c837 100644 --- a/snippets/zsh.snippets +++ b/snippets/zsh.snippets @@ -13,14 +13,14 @@ snippet ife ${0:# statements} fi snippet eif - elif ${1:condition} ; then + elif ${1:condition}; then ${0:# statements} snippet for for (( ${2:i} = 0; $2 < ${1:count}; $2++ )); do ${0:# statements} done snippet fori - for ${1:needle} in ${2:haystack} ; do + for ${1:needle} in ${2:haystack}; do ${0:#statements} done snippet fore @@ -57,6 +57,10 @@ snippet [ snippet always { ${1:try} } always { ${0:always} } snippet fun - function ${1:name} (${2:args}) { - ${0:# body} + ${1:function_name}() { + ${0:# function_body} + } +snippet ffun + function ${1:function_name}() { + ${0:# function_body} }