This is a repository with my personal configuration files for development on a Mac. It contains a bash script that installs all the necessary packages and sets up the configuration files.
git clone https://github.com/klaasnicolaas/dotfiles-mac.git
cd dotfiles-mac && bash install.sh
Note: make sure that you clone the repository in your home directory.
The following platforms are installed and set up by default with the bash script:
- Homebrew - Package manager for macOS
- GitHub CLI - Command-line tool for GitHub
- Oh My Zsh (with powerlevel10k theme and many plugins)
- Pyenv - Python version manager
- Uv - Python virtual environment manager
- Nvm - Node version manager (with yarn)
- Rbenv - Ruby version manager (with ruby-build)
- Composer - PHP dependency manager
After running the bash script, there are still some manual installations that need to be done.
This is the case for:
- Git config (name and email)
- Node.JS/NPM (via nvm)
- Python (via pyenv)
- Ruby (via rbenv)
For Git to work properly, you need to set up your name and email address.
git config --global user.name "John Doe"
git config --global user.email "hello@example.com"
In case you have issues with pushing to a repository, you can increase the buffer size with the following command:
Error message: error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400
git config --global http.postBuffer 157286400
The use of pyenv is recommended to manage multiple python versions, with the grep
command we can narrow down the list with newer versions.
pyenv install --list | grep -E "^\s*3\.(11|12|13)(\..*|-dev.*)"
pyenv install 3.12.5
pyenv global 3.12.5
Version 20 is currently the LTS version.
nvm install 20
nvm use 20
nvm alias default 20
The use of rbenv is recommended to manage multiple ruby versions.
rbenv install 3.3.1
rbenv global 3.3.1
The following tools are not installed by default, but are recommended for development on a Mac:
Distributed under the MIT License. See LICENSE
for more information.