ZSH Init
ZSH Init
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Install
brew install zsh #mac
sudo apt install zsh #linux
# Check Current Shell
echo $SHELL
# If still bash/ fish
chsh -s $(which zsh)
#or,
usermod -s $(which zsh) [username]
# Other Packages
brew install curl wget git #mac
sudo apt install curl wget git #linux
# Install Oh My ZSH
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# Adding Plugins
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
vi ~/.zshrc
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
source ~/.zshrc
# Configs to add to ~/.zshrc
DEFAULT_USER=$USER
My Config: github.com
This post is licensed under
CC BY 4.0
by the author.