我的zsh prompt的設定

暫且來做個註記 ...

我當前zsh的PS1 - .zshrc
git_branch() {
  ref=$(git symbolic-ref HEAD 2> /dev/null) || return
  echo "(${ref#refs/heads/})"
}
PS1="%~$(git_branch)%# "

改用zsh之後,發現很多東西都得重新習慣了 ... 而且用octopress好像rake new_post會失效 ... what the hell -_-
只好改回bash新增文章了 ... XD"

Comments

comments powered by Disqus