Skip to content

Instantly share code, notes, and snippets.

@Ashraf-wan
Last active December 9, 2021 15:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ashraf-wan/b021f61dea313e5d5f99a91ec7f93b1f to your computer and use it in GitHub Desktop.
Save Ashraf-wan/b021f61dea313e5d5f99a91ec7f93b1f to your computer and use it in GitHub Desktop.
Shell script for automating gcp shell setup for work.
#!/bin/bash
sudo apt update && sudo apt install zsh -y
curl https://cli-assets.heroku.com/install-ubuntu.sh | sh
u="$USER
sudo passwd $u
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo gpg --dearmor -o /usr/share/keyrings/githubcli-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null
sudo apt update
sudo apt install gh -y
sudo echo "plugin(... heroku)" >> .zshrc
sudo echo "plugin(... gh)" >> .zshrc
sudo echo "plugin(... git)" >> .zshrc
sudo echo "plugin(... docker)" >> .zshrc
docker login
@Ashraf-wan
Copy link
Author

Please exit the zsh shell after installing zsh

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