[gnome-builder] snippets: add shebang snippets



commit 7f245acce9c4546fdc8ed43a946c564dc9b3670c
Author: Christian Hergert <christian hergert me>
Date:   Sun Jan 11 15:51:34 2015 -0800

    snippets: add shebang snippets

 src/resources/gnome-builder.gresource.xml |    1 +
 src/resources/snippets/python.snippets    |    4 ----
 src/resources/snippets/shebang.snippets   |    7 +++++++
 3 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/src/resources/gnome-builder.gresource.xml b/src/resources/gnome-builder.gresource.xml
index 98eb799..255e6a8 100644
--- a/src/resources/gnome-builder.gresource.xml
+++ b/src/resources/gnome-builder.gresource.xml
@@ -27,6 +27,7 @@
     <file>snippets/main.snippets</file>
     <file>snippets/python.snippets</file>
     <file>snippets/rpmspec.snippets</file>
+    <file>snippets/shebang.snippets</file>
     <file>snippets/vala.snippets</file>
     <file>snippets/xml.snippets</file>
 
diff --git a/src/resources/snippets/python.snippets b/src/resources/snippets/python.snippets
index 821d6d0..d86748b 100644
--- a/src/resources/snippets/python.snippets
+++ b/src/resources/snippets/python.snippets
@@ -1,7 +1,3 @@
-snippet python
-- scope python, python3
-       #!/usr/bin/env python
-       $0
 snippet coding
 - scope python, python3
 - desc Set document encoding
diff --git a/src/resources/snippets/shebang.snippets b/src/resources/snippets/shebang.snippets
new file mode 100644
index 0000000..8c5a0de
--- /dev/null
+++ b/src/resources/snippets/shebang.snippets
@@ -0,0 +1,7 @@
+snippet shebang
+- scope python,python3
+       #!/usr/bin/env python
+       $0
+- scope bash
+       #!/usr/bin/env bash
+       $0


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]