共计 615 个字符,预计需要花费 2 分钟才能阅读完成。
zsh 根底配置看这篇.Mac 配置 zsh
配置成果
插件装置
spaceship 官网
Oh-My-Zsh
Clone this repo:
git clone https://github.com/spaceship-prompt/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt" --depth=1
Symlink spaceship.zsh-theme to your oh-my-zsh custom themes directory:
ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"
Set ZSH_THEME="spaceship" in your vim ~/.zshrc.
配置字体
字体装置见上一篇文章.
抉择字体: Meslo LG M DZ for Powerline
自定义 git user 信息展现
git clone https://github.com/brucejcw/spaceship-git-user.git "$ZSH/plugins/spaceship-git-user"
批改.zshrc
vim ~/.zshrc
增加 pluginplugins=(... spaceship-git-user)
在 source 命令之后增加 spaceship add git_user
正文完
发表至: javascript
2022-10-13