Changed zsh snippet for function
This commit is contained in:
parent
cc58c3b99c
commit
5035531ca8
@ -13,14 +13,14 @@ snippet ife
|
|||||||
${0:# statements}
|
${0:# statements}
|
||||||
fi
|
fi
|
||||||
snippet eif
|
snippet eif
|
||||||
elif ${1:condition} ; then
|
elif ${1:condition}; then
|
||||||
${0:# statements}
|
${0:# statements}
|
||||||
snippet for
|
snippet for
|
||||||
for (( ${2:i} = 0; $2 < ${1:count}; $2++ )); do
|
for (( ${2:i} = 0; $2 < ${1:count}; $2++ )); do
|
||||||
${0:# statements}
|
${0:# statements}
|
||||||
done
|
done
|
||||||
snippet fori
|
snippet fori
|
||||||
for ${1:needle} in ${2:haystack} ; do
|
for ${1:needle} in ${2:haystack}; do
|
||||||
${0:#statements}
|
${0:#statements}
|
||||||
done
|
done
|
||||||
snippet fore
|
snippet fore
|
||||||
@ -57,6 +57,10 @@ snippet [
|
|||||||
snippet always
|
snippet always
|
||||||
{ ${1:try} } always { ${0:always} }
|
{ ${1:try} } always { ${0:always} }
|
||||||
snippet fun
|
snippet fun
|
||||||
function ${1:name} (${2:args}) {
|
${1:function_name}() {
|
||||||
${0:# body}
|
${0:# function_body}
|
||||||
|
}
|
||||||
|
snippet ffun
|
||||||
|
function ${1:function_name}() {
|
||||||
|
${0:# function_body}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user