Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
FISH_STATUS_TO_SIGNAL(1)	  fish-shell	      FISH_STATUS_TO_SIGNAL(1)

NAME
       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 hu-
       man-friendly signals if one exists.  This is likely to  be  useful  for
       prompts in conjunction with the $status and $pipestatus variables.

EXAMPLE
	  >_ sleep 5
	  ^Ca
	  >_ fish_status_to_signal $status
	  SIGINT

COPYRIGHT
       2020, fish-shell	developers

3.2				 Aug 28, 2021	      FISH_STATUS_TO_SIGNAL(1)

NAME | SYNOPSIS | DESCRIPTION | EXAMPLE | COPYRIGHT

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=fish_status_to_signal&sektion=1&manpath=FreeBSD+13.0-RELEASE+and+Ports>

home | help