2017-10-11 17:17:35 +00:00
|
|
|
complete -c function -s d -l description -d "Set function description" -x
|
2020-03-09 18:36:12 +00:00
|
|
|
complete -c function -xa "(functions -n)" -d Function
|
|
|
|
complete -c function -xa "(builtin -n)" -d Builtin
|
2017-10-11 17:17:35 +00:00
|
|
|
complete -c function -s j -l on-job-exit -d "Make the function a job exit event handler" -x
|
|
|
|
complete -c function -s p -l on-process-exit -d "Make the function a process exit event handler" -x
|
|
|
|
complete -c function -s s -l on-signal -d "Make the function a signal event handler" -x
|
|
|
|
complete -c function -s v -l on-variable -d "Make the function a variable update event handler" -x
|
|
|
|
complete -c function -s e -l on-event -d "Make the function a generic event handler" -xa 'fish_prompt fish_command_not_found'
|
2019-09-24 05:43:38 +00:00
|
|
|
complete -c function -s a -l argument-names -d "Specify named arguments" -x
|
2017-10-11 17:17:35 +00:00
|
|
|
complete -c function -s S -l no-scope-shadowing -d "Do not shadow variable scope of calling function"
|
2019-09-24 05:43:38 +00:00
|
|
|
complete -c function -s w -l wraps -d "Inherit completions from the given command" -r
|