Home | 簡體中文 | 繁體中文 | 雜文 | 打賞(Donations) | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎專欄 | Search | Email

7.2. zsh

freebsd# pkg_add -r zsh
freebsd# chsh -s /usr/local/bin/zsh
		

7.2.1. 初始化 zsh

# compinstall -Uz compinit
# compinit
# compinstall
			

7.2.2. prompt

zsh prompt colors:

autoload colors; colors
export PS1="%B[%{$fg[red]%}%n%{$reset_color%}%b@%B%{$fg[cyan]%}%m%b%{$reset_color%}:%~%B]%b "