iTerm2安装配置
2024-07-21 本文已影响0人
田丰w
iTerm2安装
https://iterm2.com/downloads.html
调整为暗色主题
-
Open Iterm2
-
Iterm2 -> Settings -> Appearance -> General
-
Set "Theme" = Dark
![](https://img.haomeiwen.com/i1171969/6ea5f5cd05a2bdd6.png)
-
Iterm2 -> Profiles -> select your profile or default
-
Select "Colors" tab
-
Turn on the checkbox "use different colors for light mode and dark mode"
![](https://img.haomeiwen.com/i1171969/3a2adf6f475c5a45.png)
(Note: If it is already ON, then switch Off and ON again)
-
Switch "Editing" to "Dark mode"
-
Turn off the checkbox at step 6.
![](https://img.haomeiwen.com/i1171969/d2a2bc518cd76b0e.png)
DONE.
![](https://img.haomeiwen.com/i1171969/80cdd1d5e11c5b1f.png)
参考:https://stackoverflow.com/questions/78526264/how-to-set-iterm2-color-to-darkmode-with-powerlevel10k
Oh My zsh 安装配置
这里用了 powerlevel10k 主题, 效果
![](https://img.haomeiwen.com/i1171969/2f83924f77d6b735.png)
# 安装
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,按提示选择配置