安装Oh My Zsh

prepare

yum install gdbm.x86_64 gdbm-devel.x86_64

zsh

wget "http://cdnetworks-kr-1.dl.sourceforge.net/project/zsh/zsh-dev/4.3.17/zsh-4.3.17.tar.gz"
tar zxvf zsh-4.3.17.tar.gz
cd zsh-4.3.17
 
#
# If error, Try running configure with --with-tcsetpgrp or --without-tcsetpgrp
# 
./configure
make 
make install

oh my zsh

git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
chsh -s /bin/zsh
# open a new terminal

其他

由于部分系统的字体缘故,需要把themes/robbyrussell.zsh-theme修改一下前缀符号。可完美解决提醒错位的问题。

#
# 这里把➜修改为#
#PROMPT='%{$fg_bold[red]%}➜ %{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}'
#

PROMPT='%{$fg_bold[red]%}#%{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}'
linux/oh_my_zsh.txt · 最后更改: 2012/03/07 17:17 由 admin
 
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki