Skip to content

Instantly share code, notes, and snippets.

@gowinder
Last active November 18, 2020 08:44
Show Gist options
  • Save gowinder/f0bb9ac2760ac7ace4e3f11988d3b528 to your computer and use it in GitHub Desktop.
Save gowinder/f0bb9ac2760ac7ace4e3f11988d3b528 to your computer and use it in GitHub Desktop.
install and config zsh
#! /bin/bash
sudo apt update && sudo apt install -y zsh git
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
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
sed -ri 's#plugins=.*#plugins=(git python zsh-syntax-highlighting zsh-autosuggestions)#g' ~/.zshrc
sed -ri 's#ZSH_THEME=.*#ZSH_THEME="ys"#g' ~/.zshrc
source ~/.zshrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment