Skip to content

Instantly share code, notes, and snippets.

@zulhfreelancer
Forked from tsabat/zsh.md
Last active March 21, 2020 05:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zulhfreelancer/7096da32e537bca31e20d2ba0ddd29f5 to your computer and use it in GitHub Desktop.
Save zulhfreelancer/7096da32e537bca31e20d2ba0ddd29f5 to your computer and use it in GitHub Desktop.
How to install zsh in Ubuntu 16 on EC2

Prereq:

If you want to change the hostname, follow this guide.

sudo apt update -y && sudo apt install -y zsh git-core

Getting zsh to work in ubuntu is weird, since sh does not understand the source command. So, you do this to install zsh

wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh

and then you change your shell to zsh

sudo su
chsh -s $(which zsh) ubuntu

and then restart

sudo shutdown -r 0

This problem is explained in depth in this issue

Next step, you probably want to change the theme. My personal favourite is maran.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment