Skip to content

Instantly share code, notes, and snippets.

@pomo-mondreganto
Created March 15, 2020 14:50
Show Gist options
  • Save pomo-mondreganto/993aabcb4d2e5982fdc509bb5bbe933c to your computer and use it in GitHub Desktop.
Save pomo-mondreganto/993aabcb4d2e5982fdc509bb5bbe933c to your computer and use it in GitHub Desktop.
Script for ZSH + Oh My ZSH installation
#!/bin/bash
sudo apt install -y git zsh curl tmux tree vim
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
sed -ier 's/ZSH_THEME=\"\w*\"/ZSH_THEME=\"agnoster\"/g' ~/.zshrc
sed -ier 's/plugins=(git)/plugins=(git tmux zsh-completions zsh-autosuggestions zsh-syntax-highlighting history pip docker)/g' ~/.zshrc
echo 'alias zshconfig="vim ~/.zshrc"' >> ~/.zshrc
echo "export EDITOR='vim'" >> ~/.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-completions ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-completions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment