]> git.r.bdr.sh - rbdr/dotfiles/blame - vim/snippets/sh.snippets
Turn off the blur
[rbdr/dotfiles] / vim / snippets / sh.snippets
CommitLineData
0d23b6e5
BB
1# #!/bin/bash
2snippet #!
3 #!/bin/bash
4
5snippet if
6 if [[ ${1:condition} ]]; then
7 ${2:#statements}
8 fi
9snippet elif
10 elif [[ ${1:condition} ]]; then
11 ${2:#statements}
12snippet for
13 for (( ${2:i} = 0; $2 < ${1:count}; $2++ )); do
14 ${3:#statements}
15 done
16snippet wh
17 while [[ ${1:condition} ]]; do
18 ${2:#statements}
19 done
20snippet until
21 until [[ ${1:condition} ]]; do
22 ${2:#statements}
23 done
24snippet case
25 case ${1:word} in
26 ${2:pattern})
27 ${3};;
28 esac