paulfioravanti / dotfiles

My developer-focused config for Mac

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dotfiles

My configuration files for web development, and scripts to bootstrap a macOS machine.

Set up for use with rcm.

Install

For a new macOS install, open up the Terminal application.

New Machines

For new machines, where no Github account has been logged into:

git clone https://github.com/paulfioravanti/dotfiles.git ~/.dotfiles

On a new machine, running the git command will prompt you to install the XCode Command Line Tools.

Established Machines

git clone git@github.com:paulfioravanti/dotfiles.git ~/.dotfiles

Bootstrap New Machine

Pre-Setup

Before setting up a development environment on a new machine:

  • Install XCode (if you run into any other issues that would actually necessitate installing it or you are going to do Mac/iOS development)

Run Bootstrap Script

This script updates macOS to the latest version, installs XCode command line tools, and gets the machine in a state where other developer tools can be installed.

source ~/.dotfiles/bootstrap.sh

Run Setup Script

This script will install a bunch of developer-related tools.

source ~/.dotfiles/setup.sh

Once setup has finished, restart computer and run the update function that is contained in the zshrc file (zsh should have been installed during the bootstrap process):

update

Generate Dotfiles

Generate dotfile directory, excluding (-x) files that don't need to be symlinked to the home directory (this step will be performed during the bootstrap process above):

bash:

rcup -x README.md -x LICENSE.txt -x setup.sh -x config.sh -x '*:vim:setup.sh' -x '*:tmux:setup.sh' -x '*:oh-my-zsh:setup.sh' -x macos -x asdf -x 'Library/Services'

zsh:

rcup -x README.md -x LICENSE.txt -x setup.sh -x config.sh -x \*:vim:setup.sh -x \*:tmux:setup.sh -x \*:oh-my-zsh:setup.sh -x macos -x asdf -x 'Library/Services'

Regenerate Dotfiles

rcup

Once initial setup has been run, the .rcrc config file for rcup will have been created that contains the exclusions, so only $ rcup will need to be run in the future (unless more files to be excluded from being symlinked are added).

Setup Scripts

Regenerate config for all apps and libraries under dotfiles (all of these scripts get run during the bootstrap process):

source ~/.dotfiles/config.sh

Or individually (choose relevant script to regenerate config):

source ~/.dotfiles/macos/homebrew/config.sh
source ~/.dotfiles/macos/iterm2/config.sh

Social

Contact
Stack Overflow

About

My developer-focused config for Mac

License:MIT License


Languages

Language:Vim Script 77.4%Language:Shell 15.8%Language:Ruby 4.1%Language:JavaScript 2.5%Language:Elixir 0.2%