Skip to content

Instantly share code, notes, and snippets.

@yao3060
Last active November 16, 2023 06:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yao3060/5ed211b0cf1e8de61bc4f7559bbf94f2 to your computer and use it in GitHub Desktop.
Save yao3060/5ed211b0cf1e8de61bc4f7559bbf94f2 to your computer and use it in GitHub Desktop.
Dev Env For MacOS

Dev Env For MacOS

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

# install wget
brew install wget

# install jq
brew install jq

GIT

git-lfs

brew install git
brew install git-lfs

Oh My Zsh

## install ohmyzsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

## install zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

## install zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

## Add the plugin to the list of plugins for Oh My Zsh to load (inside ~/.zshrc):
vi ~/.zshrc
# remove prefix `#` from `# export PATH=$HOME/bin:/usr/local/bin:$PATH` as:
export PATH=$HOME/bin:/usr/local/bin:$PATH

plugins=( 
    # other plugins...
    zsh-autosuggestions
    zsh-syntax-highlighting
)

Node

brew install node@16

## install yarn
brew install yarn
#
curl -o- -L https://yarnpkg.com/install.sh | bash 

Docker

download and install docker from https://www.docker.com/

Install kubectl binary with curl on macOS

curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/darwin/arm64/kubectl"

PHP

brew install php

Others

# oss-browser
# download and install from https://github.com/aliyun/oss-browser

brew install neovim

# https://github.com/hatoo/oha
brew install oha

# Meld  Visual diff and merge tool
# download and install from https://meldmerge.org/

# ImageOptim
# download and install from https://imageoptim.com/mac

# IHost
# install from https://apps.apple.com/us/app/ihosts-etc-hosts-editor/id1102004240?mt=12

# Microsoft Teams
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment