Photo by Haseeb Jamil on Unsplash. Gif by Author.
This script automates installing a terminal setup described in this article.
This script for a new Mac. If you already installed iTerm2 and plugins, I suggest saving the ~/.oh-my-zsh directory, ~/.zshrc file, and ~/Library/Preferences/com.googlecode.iterm2.plist. I recommend using Automate Brew Installer first to save your brew list and then reinstall it after the Terma installation.
This script installs followings, if it is not installed on you system:
- Homebrew
- iTerm2
- ZSH
- Oh-My-Zsh
- Starship
- Snazzy iTerm theme
- Nerd fonts
- iTerm2 preferences plist
- Plugins: autojump, brew, git, zsh-syntax-highlighting, and zsh-autosuggestions.
awesome install shinokada/terma
terma
- at the beginning it requires your passwor and press return.
- After Oh My Zsh installation, it will exit. Please run
terma
AGAIN.
Run all the command from a terminal (not iTerm).
# show help
terma -h
# show version
terma -v
This script adds com.googlecode.iterm2.plist
to $HOME/Library/Preferences/
terma uninstall
Homebrew uninstallation requires your password.
Shinichi Okada
MIT License
Copyright (c) 2021 Shinichi Okada
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.