dotar/vim/snippets/sh/yesno/simple.snippet
2011-11-17 16:00:49 -06:00

7 lines
96 B
Plaintext
Executable File

read ${1:yn}
if [[ $$1 =~ [Yy] ]]; then
echo "${2:#statement}"
else
echo "${3:#statement}"
fi