summaryrefslogtreecommitdiffstats
path: root/plugins/snippets/data/sh.xml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 14:32:59 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 14:32:59 +0000
commitadb934701975f6b0214475d1a8d0d1ce727b9d4d (patch)
tree5688c745d10b64c8856586864ec416a6bdae881d /plugins/snippets/data/sh.xml
parentInitial commit. (diff)
downloadgedit-adb934701975f6b0214475d1a8d0d1ce727b9d4d.tar.xz
gedit-adb934701975f6b0214475d1a8d0d1ce727b9d4d.zip
Adding upstream version 3.38.1.upstream/3.38.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--plugins/snippets/data/sh.xml47
1 files changed, 47 insertions, 0 deletions
diff --git a/plugins/snippets/data/sh.xml b/plugins/snippets/data/sh.xml
new file mode 100644
index 0000000..b8fc0a6
--- /dev/null
+++ b/plugins/snippets/data/sh.xml
@@ -0,0 +1,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>