We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 749460b commit e77399eCopy full SHA for e77399e
UltiSnips/sh.snippets
@@ -74,8 +74,14 @@ snippet here "here document (here)"
74
${1/['"`](.+)['"`]/$1/}
75
endsnippet
76
77
+snippet /ift(est)?/ "if ... then (if)" rb
78
+if ${2:[ ${1:condition} ]}; then
79
+ ${0:${VISUAL}}
80
+fi
81
+endsnippet
82
+
83
snippet if "if ... then (if)" b
-if ${2:[[ ${1:condition} ]]}; then
84
+if [[ ${1:condition} ]]; then
85
${0:${VISUAL}}
86
fi
87
@@ -92,4 +98,10 @@ while ${2:[[ ${1:condition} ]]}; do
92
98
done
93
99
94
100
101
+snippet func "function() {...}" b
102
+${1:function} () {
103
104
+}
105
106
95
107
# vim:ft=snippets:
0 commit comments