From dfabca0566f468fc842c527e5ba621effa40b4e6 Mon Sep 17 00:00:00 2001 From: Emma Bukacek Date: Mon, 11 Jun 2018 12:19:27 -0700 Subject: [PATCH] complete: add page (#2136) --- pages/common/complete.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 pages/common/complete.md diff --git a/pages/common/complete.md b/pages/common/complete.md new file mode 100644 index 0000000000..2dce89ed3c --- /dev/null +++ b/pages/common/complete.md @@ -0,0 +1,15 @@ +# complete + +> Provides argument autocompletion to shell commands. + +- Apply a function that performs autocompletion to a command: + +`complete -F {{function}} {{command}}` + +- Apply a command that performs autocompletion to another command: + +`complete -C {{autocomplete_command}} {{command}}` + +- Apply autocompletion without appending a space to the completed word: + +`complete -o nospace -F {{function}} {{command}}`