fish_status_to_signal - Convert exit codes to human-friendly signals
Synopsis
function fish_prompt echo -n (fish_status_to_signal $pipestatus | string join '|') (prompt_pwd) '$ ' end
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
>_ sleep 5 ^C⏎ >_ fish_status_to_signal $status SIGINT
© 2021 fish-shell developers
Licensed under the GNU General Public License, version 2.
https://fishshell.com/docs/3.3/cmds/fish_status_to_signal.html