Skip to content

Instantly share code, notes, and snippets.

@PedroMartinSteenstrup
Last active August 1, 2022 14:28
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 PedroMartinSteenstrup/fcc0f4fbca961cd24ff25712551055d0 to your computer and use it in GitHub Desktop.
Save PedroMartinSteenstrup/fcc0f4fbca961cd24ff25712551055d0 to your computer and use it in GitHub Desktop.
Bunch of commands to set yourself up with HomeToGo tooling, piggybacking on https://gitlab.com/gitlab-data/analytics/blob/master/admin/onboarding_script.zsh
########## HomeBrew ##########
## Check if exists
command -v brew >/dev/null 2>&1 || { echo "Installing Homebrew.."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
} >&2;
echo "Homebrew successfully installed"
########## SSH ##########
# Create ssh key for github auth if not exist already
ssh-keygen -t ed25519 -C "your_email@example.com"
eval "$(ssh-agent -s)"
# need to check if that file exists and not erase it
touch ~/.ssh/config
# add the following to the file created above
#Host *
# AddKeysToAgent yes
# UseKeychain yes
# IdentityFile ~/.ssh/id_ed25519
ssh-add -K ~/.ssh/id_ed25519
########## ##########
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment