From 8084d02b6176358862c7307c817255b7b574994d Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Mon, 2 Mar 2015 10:12:52 +0000 Subject: [PATCH] Revert "repeared shebang" --- snippets/sh.snippets | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/snippets/sh.snippets b/snippets/sh.snippets index 230e3b7..910fe8b 100644 --- a/snippets/sh.snippets +++ b/snippets/sh.snippets @@ -1,6 +1,6 @@ # Shebang. Executing bash via /usr/bin/env makes scripts more portable. -snippet bash - #!/bin/bash +snippet #! + #!/usr/bin/env bash snippet if if [[ ${1:condition} ]]; then @@ -79,8 +79,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} }