Skip to content

Instantly share code, notes, and snippets.

@defaye defaye/
Last active Jun 2, 2020

What would you like to do?
Install ZSH with Oh-My-ZSH including some useful plugins on Ubuntu 18.04
sudo apt update && sudo apt install -y zsh git-core fonts-powerline curl
wget -O - | zsh
chsh -s `which zsh`
touch ~/.zshrc
sh -c "$(curl -fsSL"
sed -i -E "s/ZSH_THEME=.*/ZSH_THEME=\"agnoster\"/" ~/.zshrc
git clone ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-completions
sed -i -E "s/^plugins=\((.*)\)/plugins=(\1 zsh-completions)/" .zshrc
sed -i -E "s/^plugins=.*$/&\nautoload -U compinit \&\& compinit/" .zshrc
git clone ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
sed -i -E "s/^plugins=\((.*)\)/plugins=(\1 zsh-autosuggestions)/" .zshrc
git clone ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
sed -i -E "s/^plugins=\((.*)\)/plugins=(\1 zsh-syntax-highlighting)/" .zshrc

This comment has been minimized.

Copy link
Owner Author

defaye commented Jun 2, 2020

To run this command in one line:

curl -s | sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.