sudo apt install zsh
(Linux)
Mac- Mac comes default with zsh. No need to install seperately
chsh -s /usr/local/bin/zsh
or
chsh -s /bin/zsh
based on the zsh install folder. Run which zsh
to determine the install folder.
Restart terminal. Check zsh is the default shell by executing,
echo $SHELL
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k
echo 'source ~/powerlevel10k/powerlevel10k.zsh-theme' >>~/.zshrc
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
vim ~/.zshrc
plugins=(
git
docker
golang
adb
brew
zsh-autosuggestions
zsh-syntax-highlighting
)
For a full list of plugins see https://github.com/ohmyzsh/ohmyzsh/wiki/Plugins
p10k configure
For reverting to old bash shell,
chsh -s /bin/bash