https://github.com/dozken/.dotfiles
https://github.com/dozken/.dotfiles
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dozken/.dotfiles
- Owner: dozken
- Created: 2023-07-12T04:20:53.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-30T10:37:49.000Z (almost 2 years ago)
- Last Synced: 2024-07-03T08:27:29.621Z (almost 2 years ago)
- Language: Shell
- Size: 114 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Steps to bootstrap a new Mac
1. Install Apple's Command Line Tools, which are prerequisites for Git and Homebrew.
```zsh
xcode-select --install
```
2. Clone repo into new hidden directory.
```zsh
# Use SSH (if set up)...
git clone git@github.com:dozken/.dotfiles.git ~/.dotfiles
3. Create symlinks in the Home directory to the real files in the repo.
```zsh
# There are better and less manual ways to do this;
# investigate install scripts and bootstrapping tools.
cd ~/.dotfiles/
stow .
```
4. Install Homebrew, followed by the software listed in the Brewfile.
```zsh
# These could also be in an install script.
# Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Then pass in the Brewfile location...
brew bundle --file ~/.dotfiles/Brewfile
# ...or move to the directory first.
cd ~/.dotfiles && brew bundle
```
## TODO List
- use GNU stow to support easy of configuration
- Learn how to use [`defaults`](https://macos-defaults.com/#%F0%9F%99%8B-what-s-a-defaults-command) to record and restore System Preferences and other macOS configurations.
- Organize these growing steps into multiple script files.
- Revisit the list in [`.zshrc`](.zshrc) to customize the shell.
- Find inspiration and examples in other Dotfiles repositories at [dotfiles.github.io](https://dotfiles.github.io/).