Clean zsh and sh snippets for more readable style

[ticket: X]