我的zsh Prompt的設定 暫且來做個註記 … 我當前zsh的PS1 - .zshrc 1 2 3 4 5 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” Dec 28th, 2011 notes, zsh