Skip to content

Instantly share code, notes, and snippets.

@sapher
Last active June 16, 2023 09:29
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 sapher/ec153c781eed055944232d07441996d0 to your computer and use it in GitHub Desktop.
Save sapher/ec153c781eed055944232d07441996d0 to your computer and use it in GitHub Desktop.
Conf WS2
sudo apt-get update -y
sudo apt-get upgrade -y
# Install packages
sudo apt-get install zsh git unzip curl wget build-essential jq file -y
# Install oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# Install brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
# Install antigen
curl -L git.io/antigen > $HOME/antigen.zsh
# Configure Antigen
cat > $HOME/.zshrc << EOF
source ~/antigen.zsh
# Load the oh-my-zsh's library.
antigen use oh-my-zsh
# Bundles from the default repo (robbyrussell's oh-my-zsh).
antigen bundle git
antigen bundle command-not-found
antigen bundle docker
antigen bundle aws
# Syntax highlighting bundle.
antigen bundle zsh-users/zsh-completions
antigen bundle zsh-users/zsh-autosuggestions
antigen bundle zsh-users/zsh-syntax-highlighting
# Load the theme.
antigen theme robbyrussell
# Tell Antigen that you're done.
antigen apply
# Add brew to PATH
export BREW_HOME="/home/linuxbrew/.linuxbrew/bin"
export PATH="$PATH:$BREW_HOME"
alias k=kubectl
alias tf=terraform
alias gco="git checkout"
alias kns="kubens"
alias kctx="kubectx"
alias open="explorer.exe" # let's simulate it
eval "$(ssh-agent -s)" &> /dev/null
export NVM_DIR="$HOME/.nvm"
[ -s "/home/linuxbrew/.linuxbrew/opt/nvm/nvm.sh" ] && \. "/home/linuxbrew/.linuxbrew/opt/nvm/nvm.sh" # This loads nvm
[ -s "/home/linuxbrew/.linuxbrew/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/home/linuxbrew/.linuxbrew/opt/nvm/etc/bash_completion.d/nvm"
EOF
# Install brew packages
brew install awscli yt-dlp kubernetes-cli nvm tfenv yarn helm hadolint checkov pre-commit kubectx kubens
# Install last nodejs LTS
nvm install --lts
# Install last terraform
tfenv install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment