Last active
August 1, 2022 14:28
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
########## 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