Skip to content

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