added oh-my-zsh support! (finally!) also removed duplicate functions.