We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c49396f + a7a795b commit 5c71fc2Copy full SHA for 5c71fc2
functions/fish_right_prompt.fish
@@ -1,6 +1,7 @@
1
function fish_right_prompt
2
set -l exit_code $status
3
set -l cmd_duration $CMD_DURATION
4
+ set -l background_count (jobs | wc -l | tr -d ' ')
5
__tmux_prompt
6
if test $exit_code -ne 0
7
set_color red
@@ -15,6 +16,10 @@ function fish_right_prompt
15
16
end
17
printf ' (%s)' (__print_duration $cmd_duration)
18
set_color 666666
19
+ if [ $background_count -gt 0 ]
20
+ set_color purple
21
+ printf " ($background_count bg)"
22
+ end
23
printf ' < %s' (date +%H:%M:%S)
24
set_color normal
25
0 commit comments