Add setopt promptpercent and promptsubst

These options are required for Powerline to work in zsh, but the latter
is off by default.
This commit is contained in:
ZyX 2013-01-25 22:41:07 +04:00 committed by Kim Silkebækken
parent 45882f95e8
commit c566064053
1 changed files with 2 additions and 0 deletions

View File

@ -23,6 +23,8 @@ _powerline_install_precmd() {
fi
done
precmd_functions+=(_powerline_precmd)
setopt promptpercent
setopt promptsubst
PS1='$(powerline-prompt --renderer_module=zsh_prompt --last_exit_code=$? --last_pipe_status="$pipestatus" left)'
RPS1='$(powerline-prompt --renderer_module=zsh_prompt --last_exit_code=$? --last_pipe_status="$pipestatus" right)'
}