diff --git a/zsh-completions-howto.org b/zsh-completions-howto.org index 1b8c80d..aef9ce3 100644 --- a/zsh-completions-howto.org +++ b/zsh-completions-howto.org @@ -7,7 +7,7 @@ and examples to get you up and running. If you need more details you can look it Please make any scripts that you create publically available for others (e.g. by forking this repo and making a [[id:64bcd501-b0f0-48c7-b8e2-07af708b95ec][pull request]]). * Getting started -** Defining a completion function to use for a command +** Telling zsh which completion function to use for a command Completion functions for commands are stored in files with names beginning with an underscore _, and these files should be placed in a directory listed in the $fpath variable. You can add a directory to $fpath by adding a line like this to your ~/.zshrc file: @@ -38,7 +38,7 @@ For these commands you can use the _gnu_generic function for automatically creat #+BEGIN_SRC sh > compdef _gnu_generic foobar #+END_SRC -** Using completions from one command for completing another command +** Copying completions from another command If you want a command, say cmd1, to have the same completions as another, say cmd2, you can do this: #+BEGIN_SRC sh > compdef cmd1=cmd2