fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
c6166f8ce
master
1function fish_status_to_signal --description"Convert exit code to signal name" 2__fish_make_completion_signals # Make sure signals are cached 3for argin $argv 4if test $arg -gt 128 5# Important: each element of $__kill_signals is a string like "10 USR1" 6if set -l signal_names( string replace -r --filter'^' ( math $arg -128 ) ' ' SIG$__kill_signals ) 7# Some signals have multiple mnemonics. Pick the first one. 8echo $signal_names [ 1 ] 9else 10echo $arg 11end 12else 13echo $arg 14end 15end 16return 0 17end