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

README: Add quick install script for OMZ #343

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RalphORama
Copy link

This pull request adds a script to README.md that allows for automatic installation of the Bullet Train theme. This script is copied from my dotfiles used to set up new Linux/macOS terminal environments.

This four line script does the following:

  • Checks to make sure Oh My ZSH is installed (~/.zshrc and $ZSH_CUSTOM/themes exist)
  • Silently downloads the latest version of the theme to $ZSH_CUSTOM/themes/bullet-train.zsh-theme
  • Sets ZSH_THEME to the proper value in ~/.zshrc (and changes sed -i to sed -i '' on macOS for compatibility reasons)
  • Sources ~/.zshrc to activate the prompt

I have tested this script on macOS 13.2.1 (zsh 5.8.1 (x86_64-apple-darwin22.0)) and Ubuntu 22.04 (zsh 5.8 (x86_64-ubuntu-linux-gnu)).

This four line script does the following:

- Checks to make sure Oh My ZSH is installed (`~/.zshrc` and `$ZSH_CUSTOM/themes` exist)
- Silently downloads the latest version of the theme to `$ZSH_CUSTOM/themes/bullet-train.zsh-theme`
- Sets `ZSH_THEME` to the proper value in `~/.zshrc` (and changes `sed -i` to `sed -i ''` on macOS for [compatibility reasons][1]
- Sources `~/.zshrc` to activate the prompt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant