Add new snippets for sh-mode: case, select
This commit is contained in:
parent
43624cad75
commit
9904680b0e
2 changed files with 17 additions and 0 deletions
10
snippets/sh-mode/case
Normal file
10
snippets/sh-mode/case
Normal 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
7
snippets/sh-mode/select
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
# -*- mode: snippet -*-
|
||||||
|
# name : select
|
||||||
|
# key: select
|
||||||
|
# --
|
||||||
|
select ${1:var} in ${2:stuff}; do
|
||||||
|
$0
|
||||||
|
done
|
Loading…
Reference in a new issue