Skip to content

Instantly share code, notes, and snippets.

@gitshawn
Last active August 3, 2023 13:32
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gitshawn/137da3f3b94f9b2e6e15abc5f414c161 to your computer and use it in GitHub Desktop.
Save gitshawn/137da3f3b94f9b2e6e15abc5f414c161 to your computer and use it in GitHub Desktop.

AWS CloudShell Snippets

Install oh-my-zsh

# Download oh-my-zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# Set zsh to auto-start
echo 'exec /bin/zsh' >> ~/.bash_profile
# Add aws cli to zsh plugins (for tab completion)
sed -i "/^plugins=/c\plugins=(git aws)" ~/.zshrc
# Ask bash to update using this new profile
source ~/.bash_profile
# Exit current session
exit
# Exit one more time to make sure the changes stick
exit

Install Spaceship prompt

git clone https://github.com/denysdovhan/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt"
ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"
sed -i "/^ZSH_THEME=/c\ZSH_THEME=spaceship" ~/.zshrc
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment