diff --git a/functions/fish_prompt.fish b/functions/fish_prompt.fish index 99bfa25..1a13912 100644 --- a/functions/fish_prompt.fish +++ b/functions/fish_prompt.fish @@ -7,8 +7,8 @@ # DESCRIPTION # Catppuccin Mocha fallback prompt (nim-style, two-line). Active whenever # the starship prompt is not available — either starship is not installed or -# C3 overrides are disabled. Has no external dependencies; uses only fish -# builtins (set_color, fish_git_prompt, prompt_pwd, prompt_hostname). +# C3 overrides are disabled. Has no external dependencies; uses only fish-provided functions +# (set_color, fish_git_prompt, prompt_pwd, prompt_hostname). # # RETURNS # 0 Always; outputs the prompt to stdout @@ -126,12 +126,13 @@ function fish_prompt echo # newline # Background jobs (one per line, dim) - for job in (jobs) + for job in (jobs -c) set_color $retc echo -n '│ ' set_color $c_dim echo $job end + set_color normal # ─── Second line ────────────────────────────────────────────────────────── set_color $retc diff --git a/functions/fish_right_prompt.fish b/functions/fish_right_prompt.fish index 4a97692..0954fd1 100644 --- a/functions/fish_right_prompt.fish +++ b/functions/fish_right_prompt.fish @@ -15,7 +15,7 @@ # # EXAMPLE # # Rendered automatically by fish; not called directly. -function fish_right_prompt --description 'Execute fish_right_prompt' +function fish_right_prompt set -l last_status $status # Failed command: red ✘ + exit code; hidden when 0