Fix issue with $pipestatus

$pipestatus is a space-separated int list and not a single int.
This commit is contained in:
Kim Silkebækken 2013-01-22 16:45:24 +01:00
parent 8f055473ac
commit f175a6babb
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
_powerline_precmd() {
export PS1="$(powerline-prompt --renderer_module=zsh_prompt --last_exit_code=$? --last_pipe_status=$pipestatus left)"
export RPS1="$(powerline-prompt --renderer_module=zsh_prompt --last_exit_code=$? --last_pipe_status=$pipestatus right)"
export PS1="$(powerline-prompt --renderer_module=zsh_prompt --last_exit_code=$? --last_pipe_status="$pipestatus" left)"
export RPS1="$(powerline-prompt --renderer_module=zsh_prompt --last_exit_code=$? --last_pipe_status="$pipestatus" right)"
_powerline_tmux_set_pwd
}

View File

@ -16,7 +16,7 @@ parser.add_argument('side', nargs='?', default=None, choices=('left', 'right'))
parser.add_argument('--renderer_module', default='shell', choices=('shell', 'zsh_prompt'))
parser.add_argument('--ext', default='shell')
parser.add_argument('--last_exit_code', default=None, type=int)
parser.add_argument('--last_pipe_status', default=None, type=int)
parser.add_argument('--last_pipe_status', default=None)
if __name__ == '__main__':
args = parser.parse_args()