OS Manuals

fish_status_to_signal(1)

fish_status_to_signal - convert exit codes to human-friendly signals

FISH_STATUS_TO_SIGNAL(1) fish-shell FISH_STATUS_TO_SIGNAL(1)

fish_status_to_signal - convert exit codes to human-friendly signals

fish_status_to_signal NUM

function fish_prompt

echo -n (fish_status_to_signal $pipestatus | string join '|') (prompt_pwd) '$ ' end


fish_status_to_signal converts exit codes to their corresponding human-friendly signals if one exists. This is likely to be useful for prompts in conjunction with the $status and $pipestatus variables.

>_ sleep 5
^C⏎
>_ fish_status_to_signal $status
SIGINT


fish-shell developers

October 26, 2026 4.9

fish 4.9.3-r4 · os · ingested 2026-10-27