mnyon-grandkru / knowledgebase

An issue tracker of error messages discovered while developing as well as their solution.
https://github.com/mnyon-grandkru/knowledgebase/issues
MIT License
2 stars 0 forks source link

Change AMI shell to zsh #33

Closed trystant closed 5 years ago

trystant commented 6 years ago

One customization I like to make to Amazon AMIs is to have zsh be the default shell. image

The post referenced in the image above has the following commands that need to be run on an EC2 instance.

sudo yum install zsh # Install zsh
sudo chsh -s /bin/zsh ec2-user # Change shell to zsh for the EC2 user
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" # install ohmyzsh
trystant commented 5 years ago

I've since moved to a Cloud9 env powered by my own DO droplet, but the issue remains. I've noticed in the ~/.c9/tmux-2.2/configure file is the following line:

SHELL=${CONFIG_SHELL-/bin/bash}

But I'm not sure how to adjust things now. I'm going to work on this issue at another point in time.

trystant commented 5 years ago

One QAD solution is to replace my ./bashrc with a simple command: zsh