# macOS Basic Development Environment ``` _ __| | _____ __ ___ _ ____ __ / _` |/ _ \ \ / / / _ \ '_ \ \ / / | (_| | __/\ V / | __/ | | \ V / \__,_|\___| \_/ \___|_| |_|\_/ macOS Basic ``` - Install Xcode Command Line Tools ([https://developer.apple.com/download/more/](https://developer.apple.com/download/more/)) - Install Package Manager - Homebrew (https://brew.sh/) ``` $ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" ``` - Install Git ``` $ brew install git ``` - Setting Up Git ``` $ git config --global user.name "Your Name" $ git config --global user.email "youremail@domain.com" ``` - Set Default Git Text Editor ``` $ git config --global core.editor "nvim" ``` - Generate the SSH key > `openssh` is pre-installed on macOS ``` $ ssh-keygen -t rsa -b 4096 -C "youremail@domain.com" ``` > `id_rsa.pub` is located at `/Users/username/.ssh/` - Install Terminal - `alacrity` (https://github.com/alacritty/alacritty) - `iterm2` (https://github.com/gnachman/iTerm2) - `kitty` (https://github.com/kovidgoyal/kitty) ``` $ brew cask install kitty ``` - Install Code Editor - `neovim` (https://github.com/neovim/neovim) - `vscodium` (https://github.com/VSCodium/vscodium) ``` $ brew install neovim ``` - Install Tmux (https://github.com/tmux/tmux) ``` $ brew install tmux ``` - Install Oh My Tmux (https://github.com/gpakosz/.tmux) ``` $ cd $ git clone https://github.com/gpakosz/.tmux.git $ ln -s -f .tmux/.tmux.conf $ cp .tmux/.tmux.conf.local . ``` - Install Oh My Zsh (https://github.com/ohmyzsh/ohmyzsh) ``` $ sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" ``` - Install zsh-syntax-highlighting plugin (https://github.com/zsh-users/zsh-syntax-highlighting) ``` $ git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting ``` - Install zsh-autosuggestions plugin (https://github.com/zsh-users/zsh-autosuggestions) ``` $ git clone https://github.com/zsh-users/zsh-autosuggestions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions ``` - *(Optional)* Install Powerlevel10k theme (https://github.com/romkatv/powerlevel10k) ``` $ git clone --depth=1 https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k ``` Set `ZSH_THEME="powerlevel10k/powerlevel10k"` in `~/.zshrc`. - Enable Homebrew cask-fonts (https://github.com/Homebrew/homebrew-cask-fonts) > Only have to do this once! ``` $ brew tap homebrew/cask-fonts ``` - *(Optional)* Install JetBrains Mono (https://github.com/JetBrains/JetBrainsMono) ``` $ brew cask install font-jetbrains-mono ``` - *(Optional)* Install JetBrains Mono Nerd Font ``` $ brew cask install font-jetbrainsmono-nerd-font ``` - *(Optional)* Install Iosevka (https://github.com/be5invis/iosevka) ``` $ brew cask install font-iosevka ``` - *(Optional)* Install Iosevka Nerd Font ``` $ brew cask install font-iosevka-nerd-font ```