Skip to content

Instantly share code, notes, and snippets.

View fondesa's full-sized avatar

Giorgio Antonioli fondesa

View GitHub Profile
@fondesa
fondesa / bootstrap_device.sh
Last active March 1, 2023 23:31
Bootstraps a new device (macOS or Linux) preparing the setup for private YADM dotfiles. Disclaimer: highly opinionated
#!/bin/bash
COLOR_NULL="\033[0m"
SSH_DIR="$HOME/.ssh"
SSH_ID_FILE="$SSH_DIR/ssh_id"
main() {
if [[ "$OSTYPE" == "darwin"* ]]; then
bootstrap_device_macos