Add support for number of jobs to fish bindings
This commit is contained in:
parent
972bd45c21
commit
461c4f4d51
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue