Dotfiles that make anywhere feel like /home
.
"Ond’ io per lo tuo me’ penso e discerno che tu mi segui, e io sarò tua guida, e trarrotti di qui per loco etterno" (Inferno I, 112-114).
Are you ready to set up a new computer for me? Fire up your favorite terminal and let's get started!
On macOS, install Homebrew.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Install Zsh and Oh My Zsh.
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# Inspect the install script
git clone https://github.com/ohmyzsh/ohmyzsh.git
vim ./tools/install.sh
# Change the default shell to /bin/zsh
sudo chsh -s /bin/zsh "$USER"
Use ssh-keygen
to generate a new SSH key.
# Set to username@hostname[.home|work]
read KEY_COMMENT
ssh-keygen -o -a 256 -t ed25519 -C "$KEY_COMMENT"
You must add the new SSH key to GitHub in order to clone this repository and private repositories. Visit https://github.com/settings/keys or use the GitHub CLI to add the key.
# Don't add your SSH key yet!
gh auth login -s write:public_key -s codespace
gh ssh-key add ~/.ssh/id_ed25519.pub --title "$KEY_COMMENT"
Clone this repo and install my dotfiles using ./install.sh
.
git clone [email protected]:jungaretti/dotfiles.git
cd dotfiles
./install.sh
Install tools with custom installers:
Check out jungaretti/stuff to install all of my apps and tools.
I use restic and crestic to back up my data to Backblaze B2.
Log into Backblaze to create a new storage bucket and generate a new application key. Then, add the following lines to ~/.zshenv
and paste their values from Backblaze.
# Backblaze application key
export B2_ACCOUNT_ID=KEY_ID
export B2_ACCOUNT_KEY=APPLICATION_KEY
Create a <host>.password.txt
file or export RESTIC_PASSWORD
to unlock the repository automatically. See src/crestic/config.cfg
for more details.
- I use MaterialDark from https://github.com/mbadolato/iTerm2-Color-Schemes.