vim/snippets/sh.snippets @ ab4a7458c22c
Fix lispindent to indent flet/labels right so I don't lose my goddamn mind
This code is an incomprehensible hellscape so this probably breaks something
somewhere but if I have to spend another moment without correctly-indented flets
and labelses I'm gonna jump out a fucking window.
author |
Steve Losh <steve@stevelosh.com> |
date |
Fri, 25 Mar 2016 21:34:05 +0000 |
parents |
cdc196e91cd2 |
children |
(none) |
# #!/bin/bash
snippet #!
#!/bin/bash
snippet if
if [[ ${1:condition} ]]; then
${2:#statements}
fi
snippet elif
elif [[ ${1:condition} ]]; then
${2:#statements}
snippet for
for (( ${2:i} = 0; $2 < ${1:count}; $2++ )); do
${3:#statements}
done
snippet wh
while [[ ${1:condition} ]]; do
${2:#statements}
done
snippet until
until [[ ${1:condition} ]]; do
${2:#statements}
done
snippet case
case ${1:word} in
${2:pattern})
${3};;
esac