Reinstall oh-my-zsh on mac

I accidentally deleted .zshrc when trying to clean up disk. This leads to my zsh not workable anymore. So I tried to setup it again. oh-my-zsh is a good partner for zsh with a lot of plugins and themes. But after following the guide in the official site to reconfig .zshrc, I found that the theme is not workable anymore. So I think I need a totally resetup. Below 3 steps are minimum for a workable oh-my-zsh environment.

  1. delete old oh-my-zsh folder

    rm -rf ~/.oh-my-zsh

    Be careful that after u delete the folder, all cache and history are cleaned up.

  2. install oh-my-zsh again.

    sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

    After installation, we can find that a default .zshrc has been created and the theme is workable like a charm.

  3. enable bashrc settings in zsh so we won’t miss any commands configured in bash.

    if [ -f ~/.bashrc ]; then
    	. ~/.bashrc;
    fi
    

For themes and plugins, we can follow the official guide.