Last active
November 18, 2020 08:44
-
-
Save gowinder/f0bb9ac2760ac7ace4e3f11988d3b528 to your computer and use it in GitHub Desktop.
install and config zsh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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