2020-02-28 21:41:43 +08:00
|
|
|
__fish_make_completion_signals
|
2012-10-03 05:22:40 +08:00
|
|
|
|
|
|
|
complete -c timeout -l foreground -d 'Run COMMAND in the foreground'
|
2020-02-28 21:41:43 +08:00
|
|
|
complete -c timeout -s k -l kill-after -d 'Send a KILL signal after DURATION' -x
|
|
|
|
complete -c timeout -s s -l signal -d 'Specify the signal to be sent' -xa "$__kill_signals"
|
|
|
|
complete -c timeout -l preserve-status -d 'Exit with same status as COMMAND'
|
2012-10-03 05:22:40 +08:00
|
|
|
|
2024-07-24 17:42:13 +08:00
|
|
|
complete -c timeout -r -a '(__fish_complete_command)' -d 'Specify which command to run'
|
|
|
|
|
2020-02-28 21:41:43 +08:00
|
|
|
# GNU coreutils ver
|
2022-04-21 23:15:20 +08:00
|
|
|
if timeout --version &>/dev/null
|
2020-02-28 21:41:43 +08:00
|
|
|
complete -c timeout -l help -d 'Display this help and exit'
|
|
|
|
complete -c timeout -l version -d 'Output version and exit'
|
|
|
|
complete -c timeout -s v -l verbose -d 'Send diagnostic info to stderr'
|
|
|
|
end
|