Skip to content

Instantly share code, notes, and snippets.

@xush6528
Created June 17, 2020 05:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xush6528/1fca75b2f386fe8150e40c364b8f6277 to your computer and use it in GitHub Desktop.
Save xush6528/1fca75b2f386fe8150e40c364b8f6277 to your computer and use it in GitHub Desktop.
# oh-my-zsh
#### Change login shell
```
sudo chsh -s /bin/zsh
```
Reference the instructions on https://github.com/robbyrussell/oh-my-zsh.
#### Mac instructions:
Install oh-my-zsh.
```
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
```
Open `.zshrc`
```
vim ~/.zshrc
```
Install your favorite `oh-my-zsh` plugins.
E.g.
```
# zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
# zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
```
Enable `oh-my-zsh` plugins.
Open `.zshrc`
```
vim ~/.zshrc
```
Add to plugins field.
```
plugins=(
git
z
zsh-syntax-highlighting
zsh-autosuggestions
)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment