Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sandiprb/296aaaa1eb5401fea2f16841a8431e6d to your computer and use it in GitHub Desktop.
Save sandiprb/296aaaa1eb5401fea2f16841a8431e6d 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 -y
  3. Edit your passwd configuration file to tell which shell to use for user ubuntu : 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. Optional - Set hostname in .zshrc export PROMPT="%{$fg_bold[white]%} %{$bg[red]%}<HOST_NAME>%{$reset_color%} ${PROMPT}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment