AlexPagnotta / alex_dotfiles

My dotfiles configuration

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Alex Dotfiles

Contents

About

This repository contains all my Mac dotfiles, complete with scripts for an easy restore and instructions for manual steps.

Profiles

I currently have two profiles, represented by two beanched (Personal and Work), apart from the master branch that includes configs in common between the two. The main differences are in the apps installed with brew and some changes in the config files.

Pre Reset

Make sure to export all settings from the app that need a manual backup:

  • Raycast

    • Export .rayconfig file running the command "Export Settings & Data" in raycast.
    • When asked for password use the one in the Password Manager.
    • Save .rayconfig file inside the config folder of the project.
  • Warp Terminal

    • Run this command on the root of the project to update the settings file defaults export dev.warp.Warp-Stable editors/files/warp-terminal/settings.plist

Getting Started

  • Clone the project wherever you want, using the command:
git clone git@github.com:AlexPagnotta/alex_dotfiles.git
  • If you are not me, you probably would want to change something in the dotfiles, so edits the script/files and adjust them to your needs!

Scripts

Brew

Installs all brew packages, cask apps and fonts, run the brew.sh script first, and then the profile-specific script according to the branch you are in, so brew_personal.sh or brew_work.sh.

Dev

This script will set up my dev environment.

Config

Executing this script will symlink dotfiles to your home directory, these include ssh config, zshrc, git config etc.

Editor

Configures VsCode complete with extensions, Sublime Text 3 and the Warp terminal.

How to restore the dotfiles

Run each script with the following commands:

sh brew/brew.sh
sh config/config.sh
sh dev/dev.sh
sh editors/editors.sh

Post install

Mac Os Settings

See the Manual_Settings.md file for more info.

SSH keys

Zsh shell is configured to run ssh-add -A at every start, this way ssh keys are always available, For this to work you have to add your private key file to the agent using this command:

ssh-add -K ~/.ssh/private_key_file

SSH agent will only include keys protected by a password, so if you didn't set one while creating the key, you can do it by running:

ssh-keygen -p -f ~/.ssh/private_key_file

Once you have done it, you can add the key to the agent, after that, if you want, you can remove the password with the same command you used to set it.

About

My dotfiles configuration


Languages

Language:Shell 100.0%