Logo IshanKBG
Archive About

Setting up my new macOS

Published on 3 min read

Introduction:

Setting up a new macOS system can be an exciting yet daunting task. There are numerous configuration options and software choices available, making it crucial to tailor your setup to your specific needs. In this post, I will share my initial macOS setup, which includes essential applications and configurations that have helped me boost productivity and enhance my overall user experience.

System Preferences:

Essential Software:

  1. Install homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  1. Install neovim
brew install ripgrep neovim
  1. Install Firefox and iterm2
brew install --cask firefox iterm2
  1. Install Docker Desktop
brew install --cask docker

The above command will install both docker desktop and docker daemon.

Terminal Setup:

  1. Install Oh My Zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

By the way these are some recommended plugins that you should install to improve your terminal experience.

 brew install zsh-autosuggestions zsh-syntax-highlighting
  1. Install Nerd Font
brew tap homebrew/cask-fonts
brew install font-fontname-nerd-font

Replace fontname with your preferred nerd font. 3. Install Powerlevel10k

brew install powerlevel10k
echo "source $(brew --prefix)/share/powerlevel10k/powerlevel10k.zsh-theme" >>~/.zshrc
echo "ZSH_THEME="powerlevel10k/powerlevel10k"" >>~/.zshrc
# Restart zsh and configure the theme
exec zsh
p10k configure

Essential Development Tools

Since my work is mostly related to creating softwares so I have to install certain tools. Here are the tools I use on a regular basis

  1. Install NodeJs
brew install nodejs
  1. Install Python

macOS already comes with it’s own version of python. To prevent conflicts we will install pyenv to install and different python versions.

# Recommended dependencies before installing pyenv
brew install openssl readline sqlite3 xz zlib
brew install pyenv
echo 'alias brew='env PATH="${PATH//$(pyenv root)\/shims:/}" brew'' >> ~/.zshrc
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zshrc
echo '[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zshrc
echo 'eval "$(pyenv init -)"' >> ~/.zshrc
# Replace x with your preferred version of python
pyenv install 3.x.x
pyenv shell 3.x.x
  1. Install rust
 brew install rust
  1. Install git
brew install git

So this was how I did my initial setup. I hope this post helps you to setup your own macOS for software development.