Added putstate and getstate commands for zsh