commit 778761849ce942213944dddecb473ab63e8a6a6e parent d42c82e8400bdbe20b2d64d81b7c14a784b6ae96 Author: Alex Balgavy <a.balgavy@gmail.com> Date: Sun, 4 Aug 2019 23:30:25 +0200 vim: shell snippets Former-commit-id: 6bcc8d8c10117cb7fb7aeebd0de914528c986f11 Diffstat:
A | vim/ultisnips/sh.snippets | | | 21 | +++++++++++++++++++++ |
1 file changed, 21 insertions(+), 0 deletions(-)
diff --git a/vim/ultisnips/sh.snippets b/vim/ultisnips/sh.snippets @@ -0,0 +1,21 @@ +snippet select "Select menu" bA +select ${1:dest variable} in "${2:Option 1}" "${3:option 2}"; do + case "$$1" in + "$2") + break;;$0 + "$3") + break;; + *) + break;; + esac +done +endsnippet + +snippet case "Case statement" bA +case "$${1:variable}" in + "${2:Option 1}") + ;; + *) + ;; +esac +endsnippet