Skip to content

Instantly share code, notes, and snippets.

@andrey-zh
Last active April 13, 2022 13:05
Show Gist options
  • Select an option

  • Save andrey-zh/d11f99db2c1a62b0fd672da350ae90c2 to your computer and use it in GitHub Desktop.

Select an option

Save andrey-zh/d11f99db2c1a62b0fd672da350ae90c2 to your computer and use it in GitHub Desktop.
terminal setup
sudo apt-get update && sudo apt-get install zsh -y
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
sudo snap install lsd
curl -sS https://webinstall.dev/nerdfont | bash
export PATH="/home/cloud_user/.local/bin:$PATH"
curl -sS https://webinstall.dev/vim-nerdtree | bash
export PATH="/home/cloud_user/.local/bin:$PATH"
curl -sS https://webinstall.dev/myip | bash
export PATH="/home/cloud_user/.local/bin:$PATH"
curl -sS https://webinstall.dev/vim-prettier | bash
curl -sS https://webinstall.dev/vim-ale | bash
curl -sS https://webinstall.dev/vim-lastplace | bash
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
export PATH="/home/cloud_user/.local/opt/brew/bin:$PATH"
export PATH="/home/cloud_user/.local/opt/brew/sbin:$PATH"
echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> /home/cloud_user/.profile
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
sudo apt-get install build-essential -y
brew update; brew upgrade
brew install pure
echo "autoload -U promptinit; promptinit
prompt pure" >> ~/.zshrc
source ~/.zshrc
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
# plugins=( [plugins...] zsh-syntax-highlighting)
# plugins=(
# other plugins...
#zsh-autosuggestions
#)
sudo hostname acloudguru
brew install antigen
echo "source /home/linuxbrew/.linuxbrew/share/antigen/antigen.zsh" >> ~/.zshrc
antigen bundle zsh-users/zsh-autosuggestions
antigen apply
source ~/.zshrc
# plugins=(... fzf)
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
find / -name aws_completer
#/usr/local/bin/aws_completer
export PATH=/usr/local/bin/:$PATH
echo "autoload bashcompinit && bashcompinit
autoload -Uz compinit && compinit" >> ~/.zshrc
echo "complete -C '/usr/local/bin/aws_completer' aws" >> ~/.zshrc
source ~/.zshrc
brew tap hashicorp/tap
brew install hashicorp/tap/terraform
terraform -install-autocomplete
brew tap hashicorp/tap
brew install hashicorp/tap/vault
vault -autocomplete-install
brew tap hashicorp/tap
brew install hashicorp/tap/packer
packer -autocomplete-install
sudo apt-get install apt-transport-https ca-certificates gnupg
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
brew install kubectl
kubectl version --client
echo "source <(kubectl completion zsh)" >> ~/.zshrc
source ~/.zshrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment