summaryrefslogtreecommitdiffstats
path: root/plugins/snippets/data/sh.xml
blob: b8fc0a6274b3ec225e0f261c9f31737c24e54939 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?xml version="1.0" encoding="UTF-8"?>
<snippets language="sh">
  <snippet id="elif">
    <text><![CDATA[elif [[ ${1:condition} ]]; then
	$0]]></text>
    <description>elif ..</description>
    <tag>elif</tag>
  </snippet>
  <snippet id="case">
    <text><![CDATA[case ${1:choice} in
${2:first})
	$3
	;;
*)
	$4
	;;
esac]]></text>
    <description>case ..</description>
    <tag>case</tag>
  </snippet>
  <snippet id="for">
    <text><![CDATA[for (( ${1:i = 0}; ${2:i < 10}; ${3:i++} )); do
	$0
done]]></text>
    <description>for .. done</description>
    <tag>for</tag>
  </snippet>
  <snippet id="if">
    <text><![CDATA[if [[ ${1:condition} ]]; then
	$0
fi]]></text>
    <description>if .. then</description>
    <tag>if</tag>
  </snippet>
  <snippet id="sh">
    <text><![CDATA[#!/bin/sh
$0]]></text>
    <description>#!/bin/sh</description>
    <tag>sh</tag>
  </snippet>
  <snippet id="bash">
    <text><![CDATA[#!/bin/bash
$0]]></text>
    <description>#!/bin/bash</description>
    <tag>bash</tag>
  </snippet>
</snippets>