Here's my dotfiles repo.
- Clone this repo
- If you're setting up a new Mac, run
install.sh
. This:- Installs Oh-My-ZSH
- Switches shell to ZSH
- Installs useful binaries with Brew
- Installs useful cli tools through npm
- Set sensible Mac OS settings
- Read the notes section below before continuing.
- Run
link.sh
to symlink all dotfiles into the HOME folder. - Run
clone.sh
to clone projects you want to bring into your new computer in one swoop.
- I copied many things from Mathias Bynens' dotfiles.
- Put things you don't want to commit into the
.extra
file. Here's what my.extra
looks like:# npm init defaults npm config set init.author.name "Sagar Sonawane" npm config set init.author.email "my-email" npm config set init.license MIT # Git config GIT_AUTHOR_NAME="Sagar Sonawane" GIT_AUTHOR_EMAIL="my-email" GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME" git config --global user.name "$GIT_AUTHOR_NAME" GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL" git config --global user.email "$GIT_AUTHOR_EMAIL"
link.sh
will create symlinks for every file that begins with.
. The symlink target is your computer's home folder where most dotfiles are located.- I like using symlinks because I can change the dotfiles either in this repo or in the home folder, and both versions are updated.
- Before you run
link.sh
, read through.zshrc
. Make sure yousource
every file you want to run. (source
means running a file in shell-speak). - Feel free to run
link.sh
anytime you need to. It's designed to be ran as many times as you need.
If you want to give these dotfiles a try, you should first fork this repository, review the code, and remove things you don’t want or need. Don’t blindly use my settings unless you know what that entails. Use at your own risk!
Suggestions/improvements welcome!