Terminal with Oh My Zsh
tip
使用 Oh My Zsh + powerlevel10k + FiraCode + Dracula + 相关插件
Oh My Zsh
# install
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
powerlevel10k Zsh 主题
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
# 重新配置主题
p10k configure
Then set ZSH_THEME="powerlevel10k/powerlevel10k"
in ~/.zshrc
.
zsh-highlighting 高亮插件
brew install zsh-syntax-highlighting
FiraCode 字体
brew tap homebrew/cask-fonts
brew install --cask font-fira-code
Znap Zsh 包管理器
git clone --depth 1 -- https://github.com/marlonrichert/zsh-snap.git
source zsh-snap/install.zsh
zsh-autocomplete 自动补全插件
znap source marlonrichert/zsh-autocomplete
Dracula 主题 for ITerm2
git clone https://github.com/dracula/iterm.git
Install manually GitHub .zip download
Activating theme
- iTerm2 > Preferences > Profiles > Colors Tab
- Open the Color Presets... drop-down in the bottom right corner
- Select Import... from the list
- Select the Dracula.itermcolors file
- Select the Dracula from Color Presets...
Debug
Ignore insecure directories and files and continue [y]
or abort compinit [n]
?
zsh 拥有了错误的读写权限
# run compaudit and it will give you a list of directories it thinks are unsecure
compaudit
run sudo chown -R username:root target_directory
# or. it works for me.
run sudo chmod -R 755 target_directory