From c56606405323318896d03e8315d83d90a3b6b6b3 Mon Sep 17 00:00:00 2001 From: ZyX Date: Fri, 25 Jan 2013 22:41:07 +0400 Subject: [PATCH] Add setopt promptpercent and promptsubst These options are required for Powerline to work in zsh, but the latter is off by default. --- powerline/bindings/zsh/powerline.zsh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/powerline/bindings/zsh/powerline.zsh b/powerline/bindings/zsh/powerline.zsh index 91762443..4a70b205 100644 --- a/powerline/bindings/zsh/powerline.zsh +++ b/powerline/bindings/zsh/powerline.zsh @@ -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)' }