Skip to content

๐Ÿ—ƒ๏ธ Dotfiles to configure shell environment on a mac with: git, zsh, omz, pyenv, rbenv

License

Notifications You must be signed in to change notification settings

klaasnicolaas/dotfiles-mac

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

11 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

What is this?

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.

How to install configuration?

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.

Installed packages

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

Manual installations

After running the bash script, there are still some manual installations that need to be done.

This is the case for:

Setup Git config

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

Install a python version

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

Setup Node.JS/NPM

Version 20 is currently the LTS version.

nvm install 20
nvm use 20
nvm alias default 20

Install a ruby version

The use of rbenv is recommended to manage multiple ruby versions.

rbenv install 3.3.1
rbenv global 3.3.1

Awesome tools

The following tools are not installed by default, but are recommended for development on a Mac:

License

Distributed under the MIT License. See LICENSE for more information.

About

๐Ÿ—ƒ๏ธ Dotfiles to configure shell environment on a mac with: git, zsh, omz, pyenv, rbenv

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages