Add function snippet for shell

This commit is contained in:
Reyes Yang 2013-09-13 11:31:06 +08:00
parent 8f11592866
commit dc824d2e9a

View File

@ -82,3 +82,11 @@ snippet getopt
shift $(($OPTIND-1))
snippet root
if [ $(id -u) -ne 0 ]; then exec sudo $0; fi
snippet fun
${1:function_name}() {
${0:#function_body}
}
snippet ffun
function ${1:function_name}() {
${0:#function_body}
}