Refactoring init for zsh and cask