summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--snippets/org-mode/sc4
-rw-r--r--snippets/sh-mode/getopts10
2 files changed, 14 insertions, 0 deletions
diff --git a/snippets/org-mode/sc b/snippets/org-mode/sc new file mode 100644 index 0000000..977fe22 --- /dev/null +++ b/snippets/org-mode/sc
@@ -0,0 +1,4 @@
1# key: sc
2# name: sc
3# --
4[sc="${1: $(yas-choose-value '("total-recovery" "br-location-page" "_locationnameslisted" "organizations-helped" "other-results" "truck-accident-results" "car-wreck-results" "personal-injury-results" "number-locations" "experience" "employees" "mon-number" "mon-address" "lc-number" "lc-address" "ham-number" "ham-address" "zac-number" "zac-address" "liv-number" "liv-address" "asc-number" "asc-address" "shrev-number" "shrev-address" "alx-address" "alx-number" "laf-number" "laf-address" "toll-free" "br-number" "br-address" "gmia"))}"][/sc] $0 \ No newline at end of file
diff --git a/snippets/sh-mode/getopts b/snippets/sh-mode/getopts new file mode 100644 index 0000000..8f6fc39 --- /dev/null +++ b/snippets/sh-mode/getopts
@@ -0,0 +1,10 @@
1# -*- mode: snippet -*-
2# name: getopts
3# key: getopts
4# --
5while getopts ${1:h} opt; do
6 case "$opt" in
7 $0
8 esac
9done
10shift $(( OPTIND -1 )) \ No newline at end of file