Skip to content

Instantly share code, notes, and snippets.

@xcession
Last active September 12, 2021 08:42
Show Gist options
  • Save xcession/0f21f4757da41136d92f76b566e60cb9 to your computer and use it in GitHub Desktop.
Save xcession/0f21f4757da41136d92f76b566e60cb9 to your computer and use it in GitHub Desktop.
[dev env basic (macos)] macOS Basic Development Environment #coding #env #macos

macOS Basic Development Environment

     _                              
  __| | _____   __   ___ _ ____   __
 / _` |/ _ \ \ / /  / _ \ '_ \ \ / /
| (_| |  __/\ V /  |  __/ | | \ V / 
 \__,_|\___| \_/    \___|_| |_|\_/  
                         macOS Basic
$ /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 "[email protected]"
  • 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 "[email protected]"

id_rsa.pub is located at /Users/username/.ssh/

$ brew cask install kitty
$ brew install neovim
$ brew install tmux
$ cd
$ git clone https://github.com/gpakosz/.tmux.git
$ ln -s -f .tmux/.tmux.conf
$ cp .tmux/.tmux.conf.local .
$ sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
$ git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
$ git clone https://github.com/zsh-users/zsh-autosuggestions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
$ git clone --depth=1 https://github.com/romkatv/powerlevel10k.git $ZSH_CUSTOM/themes/powerlevel10k
Set `ZSH_THEME="powerlevel10k/powerlevel10k"` in `~/.zshrc`.

Only have to do this once!

$ brew tap homebrew/cask-fonts
$ brew cask install font-jetbrains-mono
  • (Optional) Install JetBrains Mono Nerd Font
$ brew cask install font-jetbrainsmono-nerd-font
$ brew cask install font-iosevka
  • (Optional) Install Iosevka Nerd Font
$ brew cask install font-iosevka-nerd-font
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment