Skip to content

Commit 504cd2e

Browse files
committed
Merge pull request #529 from switch87/master
repeared shebang
2 parents c5a4c4a + 2b8e591 commit 504cd2e

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

snippets/sh.snippets

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Shebang. Executing bash via /usr/bin/env makes scripts more portable.
2-
snippet #!
3-
#!/usr/bin/env bash
2+
snippet bash
3+
#!/bin/bash
44

55
snippet if
66
if [[ ${1:condition} ]]; then
@@ -79,11 +79,8 @@ snippet getopt
7979
shift $(($OPTIND-1))
8080
snippet root
8181
if [ \$(id -u) -ne 0 ]; then exec sudo \$0; fi
82+
8283
snippet fun
83-
${1:function_name}() {
84-
${0:#function_body}
85-
}
86-
snippet ffun
8784
function ${1:function_name}() {
8885
${0:#function_body}
8986
}

0 commit comments

Comments
 (0)