Add function snippet for shell
This commit is contained in:
parent
8f11592866
commit
dc824d2e9a
@ -82,3 +82,11 @@ snippet getopt
|
|||||||
shift $(($OPTIND-1))
|
shift $(($OPTIND-1))
|
||||||
snippet root
|
snippet root
|
||||||
if [ $(id -u) -ne 0 ]; then exec sudo $0; fi
|
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}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user