Published on

My develop settings when reinstall

Authors
  • avatar
    Name
    Rick Jiang
    Twitter
Table of Contents

Install HomeBrew

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

Install develop tools

brew install --cask google-chrome
brew install --cask iterm2
brew install --cask visual-studio-code

brew install --cask anydesk
brew install --cask zoom

brew tap homebrew/cask-fonts
brew install --cask font-hack-nerd-font
brew install --cask font-fira-code

brew install zsh
brew install node@18

Setting Zsh as default & install oh-my-zsh

sudo sh -c "echo $(which zsh) >> /etc/shells"
chsh -s $(which zsh)
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Setting Zsh theme & environment

# Preferences > Profiles > Terminal > Report Terminal Type> xterm-256color
git clone https://github.com/dracula/iterm.git
# iTerm import Dracula & select
git clone https://github.com/romkatv/powerlevel10k.git ~/.oh-my-zsh/custom/themes/powerlevel10k

vi ~/.zshrc

# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="powerlevel10k/powerlevel10k"

# Hide user name
DEFAULT_USER="rick"

Generate SSH Key & Setting Git profile

# ed25519 is currently the safest and fastest key type for encryption and decryption
ssh-keygen -t ed25519 -C "your_email@example.com"
cat ~/.ssh/id_ed25519.pub

git config --global user.name "your_username"
git config --global user.email "your_email@example.com"