yum install gdbm.x86_64 gdbm-devel.x86_64
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
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%}'