Skip to content

Commit

Permalink
Add escaping of $
Browse files Browse the repository at this point in the history
    without escaping the snippet can not be expanded
  • Loading branch information
Nighoo committed May 22, 2014
1 parent debd257 commit d5e0cc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snippets/sh.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ snippet getopt
done
shift $(($OPTIND-1))
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}
Expand Down

0 comments on commit d5e0cc5

Please sign in to comment.