changed shebangs end function snippet
Same pull request as before, but could not resolve rebasing problem.
This commit is contained in:
parent
00258dcefa
commit
2dba5c5289
@ -1,5 +1,8 @@
|
|||||||
# Shebang. Executing bash via /usr/bin/env makes scripts more portable.
|
# Shebang. Executing bash via /usr/bin/env makes scripts more portable.
|
||||||
snippet #!
|
snippet #!
|
||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
snippet bash
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
snippet if
|
snippet if
|
||||||
@ -79,11 +82,13 @@ 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
|
|
||||||
|
snippet fun-sh
|
||||||
${1:function_name}() {
|
${1:function_name}() {
|
||||||
${0:#function_body}
|
${0:#function_body}
|
||||||
}
|
}
|
||||||
snippet ffun
|
|
||||||
|
snippet fun
|
||||||
function ${1:function_name}() {
|
function ${1:function_name}() {
|
||||||
${0:#function_body}
|
${0:#function_body}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user