summaryrefslogtreecommitdiff
path: root/snippets/snakemake-mode/cdrun
diff options
context:
space:
mode:
Diffstat (limited to 'snippets/snakemake-mode/cdrun')
-rw-r--r--snippets/snakemake-mode/cdrun5
1 files changed, 5 insertions, 0 deletions
diff --git a/snippets/snakemake-mode/cdrun b/snippets/snakemake-mode/cdrun
new file mode 100644
index 0000000..191cbb3
--- /dev/null
+++ b/snippets/snakemake-mode/cdrun
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: cdrun
+# key: cd
+# --
+'cd $(dirname {${1:input[0]}}) && ./$(basename {$1})'