ZSH
install zsh
https://github.com/robbyrussell/oh-my-zsh/wiki/Installing-ZSH
sudo xcodebuild -license accept
brew install zsh zsh-completions
zsh --version
sudo echo "$(which zsh)" >> /etc/shells (brew may do this for you)
chsh -s $(which zsh)
- restart terminals
oh-my-zsh
https://github.com/robbyrussell/oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
material theme for shell
https://github.com/carloscuesta/materialshell
curl -o ~/Downloads/material-dark.terminal https://raw.githubusercontent.com/carloscuesta/materialshell/master/shell-color-themes/macOS/terminal/materialshell-dark.terminal
curl -o ~/Downloads/material-oceanic.terminal https://raw.githubusercontent.com/carloscuesta/materialshell/master/shell-color-themes/macOS/terminal/materialshell-oceanic.terminal
https://github.com/carloscuesta/materialshell/tree/master/shell-color-themes#macos
follow this
mkdir "$HOME/.oh-my-zsh/custom/materialshell.zsh-theme"
curl -fsSL -o "$HOME/.oh-my-zsh/custom/themes/materialshell.zsh-theme" https://raw.githubusercontent.com/carloscuesta/materialshell/master/materialshell.zsh
- Modify
.zshrc
to enable the theme withZSH_THEME="materialshell"
vars
https://wiki.archlinux.org/index.php/environment_variables
- put them in ~/.profile
- add
source ~/.profile
to~/.zshrc
and~/.bash_profile