Add $fish_kill_signal to track the signal that terminated a command.

Set to `0` if the command exited normally.
This commit is contained in:
Soumya
2020-03-31 11:27:17 -07:00
committed by Johannes Altmanninger
parent 67eaefeb82
commit 61a9cdaa74
6 changed files with 32 additions and 1 deletions

View File

@@ -1059,6 +1059,8 @@ The user can change the settings of ``fish`` by changing the values of certain v
- ``pipestatus``, a list of exit statuses of all processes that made up the last executed pipe.
- ``fish_kill_signal``, the signal that terminated the previous command, or `0` if the command exited normally.
- ``USER``, the current username. This variable can be changed by the user.
- ``CMD_DURATION``, the runtime of the last command in milliseconds.