mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-28 20:34:07 +08:00
16 lines
232 B
Fish
16 lines
232 B
Fish
function alarm --on-signal ALRM
|
|
echo ALRM received
|
|
end
|
|
|
|
|
|
kill -s ALRM $fish_pid
|
|
|
|
function anychild --on-process-exit 0
|
|
# Type and exit status
|
|
echo $argv[1] $argv[3]
|
|
end
|
|
|
|
command false
|
|
command true
|
|
command false | command true
|