FISH\_STATUS\_TO\_SIGNAL(1) fish-shell FISH\_STATUS\_TO\_SIGNAL(1)

# [NAME](#NAME)

fish\_status\_to\_signal - convert exit codes to human-friendly signals

# [SYNOPSIS](#SYNOPSIS)

```
fish_status_to_signal NUM
```

```
function fish_prompt


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

# [DESCRIPTION](#DESCRIPTION)

**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.

# [EXAMPLE](#EXAMPLE)

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

# [Copyright](#Copyright)

fish-shell developers

October 15, 2026 4.9

---

Document: fish_status_to_signal(1) from fish 4.9.3-r3 (Chainguard OS)
Source: https://github.com/fish-shell/fish-shell
