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:
parent
45882f95e8
commit
c566064053
|
@ -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)'
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue