mirror of
https://github.com/powerline/powerline.git
synced 2025-07-26 23:35:04 +02:00
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
|
||||||
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user