Add support for number of jobs to fish bindings

This commit is contained in:
ZyX 2014-01-19 17:51:48 +04:00
parent 972bd45c21
commit 461c4f4d51

View File

@ -7,12 +7,13 @@ function powerline
end end
end end
function --on-variable POWERLINE_COMMAND _powerline_update function --on-variable POWERLINE_COMMAND _powerline_update
set -l addargs "--last_exit_code=\$status --last_pipe_status=\$status --jobnum=(jobs -p | wc -l)"
eval " eval "
function fish_prompt function fish_prompt
$POWERLINE_COMMAND shell left --last_exit_code=\$status --last_pipe_status=\$status $POWERLINE_COMMAND shell left $addargs
end end
function fish_right_prompt function fish_right_prompt
$POWERLINE_COMMAND shell right --last_exit_code=\$status --last_pipe_status=\$status $POWERLINE_COMMAND shell right $addargs
end end
" "
end end