Many thanks to Zach Holman for providing the basis for these dotfiles in this repo.
To understand the philosophy of this project, read Zach's post on the subject.
Everything's built around topic areas. If you're adding a new area to your
forked dotfiles — say, "Java" — you can simply add a java directory and put
files in there. Anything with an extension of .zsh will get automatically
included into your shell. Anything with an extension of .symlink will get
symlinked without extension into $HOME when you run script/bootstrap.
A lot of stuff. Seriously, a lot of stuff. Check them out in the file browser above and see what components may mesh up with you. Fork it, remove what you don't use, and build on what you do use.
There's a few special files in the hierarchy.
- bin/: Anything in
bin/will get added to your$PATHand be made available everywhere. - topic/*.zsh: Any files ending in
.zshget loaded into your environment. - topic/path.zsh: Any file named
path.zshis loaded first and is expected to setup$PATHor similar. - topic/completion.zsh: Any file named
completion.zshis loaded last and is expected to setup autocomplete. - topic/install.sh: Any file named
install.shis executed when you runscript/install. To avoid being loaded automatically, its extension is.sh, not.zsh. - topic/*.symlink: Any file ending in
*.symlinkgets symlinked into your$HOME. This is so you can keep all of those versioned in your dotfiles but still keep those autoloaded files in your home directory. These get symlinked in when you runscript/bootstrap.
On a fresh Mac, install Xcode Command Line Tools first. This provides Git and other basic developer tools:
xcode-select --installThen run:
git clone https://github.com/lgebhardt/dotfiles.git ~/.dotfiles
cd ~/.dotfiles
script/bootstrapThis will symlink the appropriate files in .dotfiles to your home directory.
Everything is configured and tweaked within ~/.dotfiles.
Put machine-specific environment variables and overrides in ~/.localrc.
Keep repo-tracked shell files portable so a new machine can bootstrap cleanly.
dot is a simple script that installs some dependencies, sets sane macOS
defaults, and so on. Tweak this script, and occasionally run dot from
time to time to keep your environment fresh and up-to-date. You can find
this script in bin/.
By default the Homebrew install only applies the base package set. To also install the larger optional toolchain, run:
DOTFILES_INSTALL_EXTRAS=1 script/bootstrap-
Install Xcode Command Line Tools:
xcode-select --install
-
Clone the repo:
git clone https://github.com/lgebhardt/dotfiles.git ~/.dotfiles cd ~/.dotfiles
-
Optionally create
~/.localrcfor machine-specific environment variables and overrides. -
Run the base bootstrap:
script/bootstrap
-
If this machine still needs the optional toolchain, install extras too:
DOTFILES_INSTALL_EXTRAS=1 script/bootstrap
-
Open a new shell so PATH and Homebrew environment changes are loaded.
-
Install anything not managed here, such as App Store apps, Docker Desktop, SSH keys, and language-specific runtimes.