add shell snippets for case and while