Add escaping of $
without escaping the snippet can not be expanded
This commit is contained in:
parent
debd257115
commit
d5e0cc53ba
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user