Table of Contents
美化shell
Oh My Zsh Configuration
based on install zsh and oh-my-zsh
1. 安装
[sudo] apt-get install zsh
2. 安装 oh-my-zsh from github with curl or wget
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
3. 安装并配置 powerlevel9k > installation > debian > paste
4. 配置 powerlevel9k 把以下内容添加到 ~/.zshrc
ZSH_THEME = "powerlevel9k/powerlevel9k"
5. 安装 nerd-fonts
from github, 选一个就好, 比如hack
6. 改变终端的自定义主题和字体为nerd-font
7. 把以下内容添加到 ~/.zshrc
POWERLEVEL9K_MODE="nerdfont-complete"
POWERLEVEL9K_DISABLE_RPROMPT=true
POWERLEVEL9K_PROMPT_ON_NEWLINE=ture
POWERLEVEL9K_MULRILINE_LAST_PROMPT_PREFIX="> "
POWERLEVEL9K_MULRILINE_FIRST_PROMPT_PREFIX=""
8. 在CharMap中查看你想要的logo, 然后选择logo并按照下面的流程进行复制.
select fonts > choose nerd-fonts hack > 2800-2900 and copy debian icon from the list
9. 添加logo并在 ~/.zshrc
添加以下内容
POWERLEVEL9K_LEFT_PROMPT_DEBIAN_ELEMENTS = (custom_debian_icon dir vcs)
POWERLEVEL9K_CUSTOM_DEBIAN_ICON="echo "
POWERLEVEL9K_CUSTOM_DEBIAN_ICON_BACKGROUND=069
POWERLEVEL9K_CUSTOM_DEBIAN_ICON_FOREGROUND=015