- Connect to your EC2 instance
- Install zsh :
sudo apt-get update && sudo apt-get install zsh
- Edit your passwd configuration file to tell which shell to use for user (check with whoami)
:
sudo vim /etc/passwd` - Look for
ubuntu
user, and replacebin/bash
bybin/zsh
- Install OhMyZsh :
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
- Disconnect from your instance and reconnect it.
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
- Add in
.zshrc
line:plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
. Remember to remove previousplugins=(git)
Forked from anthonyray/gist:398fde676a7704c03d6624155ba0011e
Last active
January 24, 2020 19:52
-
-
Save RadoslawB/5357ec038f758255849e3c2ad6794a92 to your computer and use it in GitHub Desktop.
Set up OhMyZsh on Amazon EC2 instance running Ubuntu Server 14.04
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment