Some basics:
- Install Homebrew
- Install Oh My Zsh
- Install powerlevel 10K
- Install bat
- Install Fuzzy Find
export FZF_DEFAULT_COMMAND="rg --hidden --files"
export FZF_DEFAULT_OPTS='--preview="bat --style=numbers --color=always {}"'
set rtp+=/usr/local/opt/fzf
colo desert
syntax on
Yep, that's right. My scripts assume you have a general dotfiles repository, and also a dotfiles-local repository where you store stuff specific to your workstation. If you don't have a "local" repository, that's cool too. Just skip that step.
You can clone the repositories wherever you want (I like to keep them in ~/projects/
).
# from ~/projects
git clone [email protected]:mjfaga/dotfiles-local.git ./dotfiles-local # Regardles of the local dotfiles name, always putit in a dotfiles-local directory
git clone [email protected]:mjfaga/dotfiles.git
cd dotfiles
Installs a mix of applications via Homebrew (Homebrew installed automatically by script if not already) & curl :
./apps.sh
The bootstrapper script will pull in the latest version of your dotfiles and simlink/copy the files to your home folder. If you have a dotfiles-local directory sibling, configuration in that file will be recognized as well.
# from ~/Projects
git clone [email protected]:mjfaga/dotfiles.git && cd dotfiles && source bootstrap.sh
To run the bootstrap:
cd dotfiles
source bootstrap.sh
Alternatively, to update while avoiding the confirmation prompt:
cd dotfiles
set -- -f; source bootstrap.sh
To update later on, just run that command again.
When setting up a new Mac, you may want to set some sensible macOS defaults. NOTE: You may need to give the terminal app you use to run this script Full Disk Access in order for all settings to be successfully changed.
./macos.sh
Suggestions/improvements welcome!