Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save RadoslawB/5357ec038f758255849e3c2ad6794a92 to your computer and use it in GitHub Desktop.
Save RadoslawB/5357ec038f758255849e3c2ad6794a92 to your computer and use it in GitHub Desktop.
Set up OhMyZsh on Amazon EC2 instance running Ubuntu Server 14.04
  1. Connect to your EC2 instance
  2. Install zsh : sudo apt-get update && sudo apt-get install zsh
  3. Edit your passwd configuration file to tell which shell to use for user (check with whoami):sudo vim /etc/passwd`
  4. Look for ubuntu user, and replace bin/bash by bin/zsh
  5. Install OhMyZsh : sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
  6. Disconnect from your instance and reconnect it.
  7. git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
  8. git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
  9. Add in .zshrc line: plugins=(git zsh-autosuggestions zsh-syntax-highlighting). Remember to remove previous plugins=(git)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment