Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add zsh and oh-my-zsh? #49

Open
damianesteban opened this issue Nov 12, 2016 · 4 comments
Open

How to add zsh and oh-my-zsh? #49

damianesteban opened this issue Nov 12, 2016 · 4 comments

Comments

@damianesteban
Copy link

I need to setup 10 new Macs and I've looked at various solutions including boxen and other shell scripts. This is by far the best solution (for my purposes) that I've seen.

If I wanted to install zsh and oh-my-zsh, what would I have to do (besides installing zsh via homebrew)? Specifically, what's the best place to run the oh-my-zsh installer script?

Thanks for the great work.

@donnemartin
Copy link
Owner

Hi @damianesteban, thanks for the feedback!

I'm not a Zsh user myself, but this seems like a good resource:

http://sourabhbajaj.com/mac-setup/iTerm/zsh.html

If you're doing a good amount of config like in the article above, you could create a new shell script to hold all of the commands, ie zsh.sh. See similar scripts like pydata.sh or aws.sh as examples.

If you're using the .dots script to chain the shell scripts together, just add an entry to call your zsh.sh script.

        if [ $ARG == "zsh" ] || [ $ARG == "all" ]; then
            # Run the zsh.sh Script
            echo "------------------------------"
            echo "Setting up Zsh."
            echo "------------------------------"
            echo ""
            ./zsh.sh
        fi

Then from the command line you just run something like this:

$ ./.dots bootstrap osxprep brew osx zsh

@damianesteban
Copy link
Author

damianesteban commented Nov 13, 2016

Thanks so much, this worked well. I'll post the full solution so other zsh users can benefit from it once I clean it up.

@donnemartin
Copy link
Owner

@damianesteban great, please feel free to submit a pull request once it's ready.

@josephmilla
Copy link

josephmilla commented Apr 2, 2017

@donnemartin you should check these out:
https://github.com/robbyrussell/oh-my-zsh
https://github.com/spf13/spf13-vim

Created a quick PR for these #62

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants