From your $HOME directory, run:
curl https://raw.githubusercontent.com/anthlam/dotfiles/master/.macos | bashIf you want to review and customize before installing:
-
Clone the repo:
git clone git@github.com:anthlam/dotfiles.git "${HOME}/code/me/dotfiles" -
Review and customize the
.macosscript and dotfiles as needed. -
Run the setup script:
bash "${HOME}/code/me/dotfiles/.macos"
The .macos script will:
- Install Homebrew
- Generate SSH keys for GitHub
- Symlink all dotfiles to your
$HOMEdirectory - Install all packages from
.brewfile - Set up neovim configuration
- Set up fzf key bindings and fuzzy completion
- Install and configure Spacemacs
- Install nvm and latest Node.js LTS
- Configure macOS system preferences
- Install language/tool specific packages:
brew install python postgresql elixir- Install RVM
- Install desired ruby versions using
rvm
For API keys, tokens, and other secrets that should not be committed to the repo:
- Copy the example file:
cp "${HOME}/code/me/dotfiles/.secrets.example" "${HOME}/.secrets"
- Add your actual secret values to
~/.secrets - Secure the file:
chmod 600 ~/.secrets
This file is loaded by .bashrc but is never symlinked or committed to git.
For work computer customizations (aliases, paths, functions) that differ from your personal setup:
- Copy the example file:
cp "${HOME}/code/me/dotfiles/.work.example" "${HOME}/.work"
- Add your work-specific configuration to
~/.work
This allows you to use the same dotfiles repo on both personal and work machines while maintaining environment-specific customizations.