Add new snippets for sh-mode: case, select

This commit is contained in:
Seong Yong-ju 2019-11-10 13:24:08 +09:00
parent 43624cad75
commit 9904680b0e
2 changed files with 17 additions and 0 deletions

10
snippets/sh-mode/case Normal file
View file

@ -0,0 +1,10 @@
# -*- mode: snippet -*-
# name : case
# key: case
# --
case ${1:cond} in
${2:pattern} )
${3:stuff}
;;
$0
esac

7
snippets/sh-mode/select Normal file
View file

@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name : select
# key: select
# --
select ${1:var} in ${2:stuff}; do
$0
done