Skip to content

Instantly share code, notes, and snippets.

@BANOnotIT
Created July 22, 2020 18:53
Show Gist options
  • Save BANOnotIT/307c059d1c688f7b6b16d69505a8b138 to your computer and use it in GitHub Desktop.
Save BANOnotIT/307c059d1c688f7b6b16d69505a8b138 to your computer and use it in GitHub Desktop.
Setup zsh
sudo apt install zsh
chsh -s /usr/bin/zsh
# installing oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# installing plugins
git clone --depth=1 https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone --depth=1 https://github.com/zsh-users/zsh-history-substring-search ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-history-substring-search
git clone --depth=1 https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
sed -i "s/^plugins=(.*)/plugins=(git zsh-autosuggestions extract zsh-history-substring-search zsh-syntax-highlighting)/g" .zshrc
# installing powelevel10k
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
sed -i "s/^ZSH_THEME=.*/ZSH_THEME=\"powerlevel10k/powerlevel10k\"/g" .zshrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment