Home | Mirror | Search

2. zsh

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

2.1. 初始化 zsh

# compinstall -Uz compinit
# compinit
# compinstall
			

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