This repo contains all the scripts I use to set up a new Mac, and to keep my dotfiles in sync across my computers. I use chezmoi to manage the dotfiles.
It was forked from https://github.com/monfresh/dotfiles.
Read his step-by-step detailed guide.
Copy all your ".something" files into the corresponding "dot_something" file in this repo.
- Capto
- 4kDownload
- Bartender
- Apple TV, Music
- Others?
- Run:
cd ~ brew bundle dump
- Then copy contents into Brewfile.tmpl in this repo.
-
Sign in to iCloud and App Store, otherwise installing apps via mas won’t work.
-
Download and execute
.laptop.local
:cd ~; curl --remote-name https://raw.githubusercontent.com/jonnnylingo/dotfiles/main/dot_laptop.local; mv dot_laptop.local .laptop.local; chmod 744 .laptop.local;./.laptop.local
When prompted by chezmoi for email, enter the email you want to use for Git. When prompted for location, enter
home
orwork
, so that the appropriate apps and aliases are installed based on whether this is a home computer or work computer. See Brewfile.local.tmpl for an example. When prompted for the various tokens, get them from 1Password and paste them in. -
Restart the computer.
If you want to refresh dot files on your current Mac, just run:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/jonnnylingo/dotfiles/main/executable_dot_backup_dotfiles)"
This script will take all your ~/.* files and copy them to a .dot_backkup file so you can refresh all your dot files from the repo.
Then run this script to refresh your dot files (WARNING: Your current dotfiles will be overwritten. It's a good idea to back them up.):
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/jonnnylingo/dotfiles/main/executable_dot_refresh_dotfiles)"
My configuration is using the oh-my-zsh framework.
Place any custom changes in the dot_oh-my-zsh/custom folder with a '.zsh' extenstion. Oh-my-zsh will read those files last and override any aliases or other settings from Oh-my-zsh.
Chezmoi will place the custom files in the custom folder. If for some reason, the custom files are not being read, delete any .zcompdump* files in your home directory. For more oh-my-zsh troubleshooting see... https://github.com/ohmyzsh/ohmyzsh/wiki/Troubleshooting
Look-up Homebrew Formlae: https://formulae.brew.sh/cask/
The Unofficial guide to dotfiles on GitHub: https://dotfiles.github.io/
rm .aliases;rm .b*;sudo rm -r .config;rm .curlrc;rm .e*;rm .functions;rm .g*;rm .hushlogin;rm .inputrc;rm .laptop.local;sudo rm -r .local;rm .macos;rm .nvm;rm .screenrc;rm .wgetrc;sudo rm -r .zsh_sessions;rm .z*;
mkdir dot_archive;mv .aliases dot_archive; mv .b* dot_archive; mv .config dot_archive; mv .curlrc dot_archive; mv .e* dot_archive; mv .functions dot_archive; mv .g* dot_archive; mv .hushlogin dot_archive; mv .inputrc dot_archive; mv .laptop.local dot_archive; mv .local dot_archive; mv .macos dot_archive; mv .nvm dot_archive; mv .screenrc dot_archive; mv .wgetrc dot_archive; mv .zsh_sessions dot_archive; mv .z* dot_archive;
TODO:
- Automatically set macOs settings using the executable_dot_macos file.
- Set spotlight to opt + spacebar to make space for Alfred