---
# System prepended metadata

title: 20230204 安裝zsh(Joshua)

---

# 安裝zsh
1. iTerm下指令：
> -> curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash

2. 安裝Brew

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

brew install 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)"

git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k

vi ~/.zshrc

ZSH_THEME="powerlevel10k/powerlevel10k"

exec $SHELL

$ echo ‘eval $(/opt/homebrew/bin/brew shellenv)’ >> /Users/[你的帳號]/.zprofile eval $(/opt/homebrew/bin/brew shellenv)

----------------------
打開VS，perference/terminal 
terminal.app 改為 iTerm.app

截圖的
打開js什麼的
然後下這兩串(要有逗號)
"terminal.integrated.defaultProfile.osx": "zsh"
"terminal.integrated.fontFamily":"MesloLGS NF"

再重開VS 理論上就有了