Fix issue with $pipestatus
$pipestatus is a space-separated int list and not a single int.
This commit is contained in:
parent
8f055473ac
commit
f175a6babb
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue