Home | 简体中文 | 繁体中文 | 杂文 | Search | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 作品与服务 | 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 "
			
comments powered by Disqus