iTerm2安裝
https://iterm2.com/downloads.html
調(diào)整為暗色主題
Open Iterm2
Iterm2 -> Settings -> Appearance -> General
Set "Theme" = Dark
Iterm2 -> Profiles -> select your profile or default
Select "Colors" tab
Turn on the checkbox "use different colors for light mode and dark mode"
(Note: If it is already ON, then switch Off and ON again)
Switch "Editing" to "Dark mode"
Turn off the checkbox at step 6.
DONE.
參考:https://stackoverflow.com/questions/78526264/how-to-set-iterm2-color-to-darkmode-with-powerlevel10k
Oh My zsh 安裝配置
這里用了 powerlevel10k 主題, 效果
# 安裝
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# 配置Theme
# powerlevel10k 主題
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
# dokcer插件
git clone https://github.com/felixr/docker-zsh-completion ~/.oh-my-zsh/custom/plugins/docker
open ~/.zshrc
ZSH_THEME="powerlevel10k/powerlevel10k"
plugins=(git docker)
重新打開 iTerm2,按提示選擇配置