From 461c4f4d51f93f3c5b577c9d5d790745b34ab0e2 Mon Sep 17 00:00:00 2001 From: ZyX Date: Sun, 19 Jan 2014 17:51:48 +0400 Subject: [PATCH] Add support for number of jobs to fish bindings --- powerline/bindings/fish/powerline.fish | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/powerline/bindings/fish/powerline.fish b/powerline/bindings/fish/powerline.fish index 8707e744..196e9c81 100644 --- a/powerline/bindings/fish/powerline.fish +++ b/powerline/bindings/fish/powerline.fish @@ -7,12 +7,13 @@ function powerline end end function --on-variable POWERLINE_COMMAND _powerline_update + set -l addargs "--last_exit_code=\$status --last_pipe_status=\$status --jobnum=(jobs -p | wc -l)" eval " function fish_prompt - $POWERLINE_COMMAND shell left --last_exit_code=\$status --last_pipe_status=\$status + $POWERLINE_COMMAND shell left $addargs end function fish_right_prompt - $POWERLINE_COMMAND shell right --last_exit_code=\$status --last_pipe_status=\$status + $POWERLINE_COMMAND shell right $addargs end " end