aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc_src/complete.txt
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2005-12-04 12:33:53 +1000
committerGravatar axel <axel@liljencrantz.se>2005-12-04 12:33:53 +1000
commit2bc2e0b9ec73031432d7c652bd9666513eba3bec (patch)
treee792976e96579700f49e42059e1c7db8241dd21d /doc_src/complete.txt
parent02083a1bd7231eab23008e70aa4d929e4e6bdbc5 (diff)
More documentation tweaks
darcs-hash:20051204023353-ac50b-196f21f186237d5e7074667fc86f2172a7ac40e2.gz
Diffstat (limited to 'doc_src/complete.txt')
-rw-r--r--doc_src/complete.txt11
1 files changed, 9 insertions, 2 deletions
diff --git a/doc_src/complete.txt b/doc_src/complete.txt
index 30d643eb..0f703f93 100644
--- a/doc_src/complete.txt
+++ b/doc_src/complete.txt
@@ -4,6 +4,11 @@
<tt>complete (-c|--command|-p|--path) COMMAND [(-s|--short-option) SHORT_OPTION] [(-l|--long-option|-o|--old-option) LONG_OPTION [(-a||--arguments) OPTION_ARGUMENTS] [(-d|--description) DESCRIPTION] </tt>
\subsection complete-description Description
+
+For an introduction to how to specify completions, see the section <a
+href='index.html#completions-own'>Writing your own completions</a> of
+the fish manual.
+
- <tt>COMMAND</tt> is the name of the command for which to add a completion
- <tt>SHORT_OPTION</tt> is a one character option for the command
- <tt>LONG_OPTION</tt> is a multi character option for the command
@@ -61,7 +66,9 @@ are valid, like the \c nodeps switch.
This can be written as:
-<tt>complete -c rpm -n "__fish_contains_opt -s e erase" -l nodeps -d 'Dont check dependencies'</tt>
+<tt>complete -c rpm -n "__fish_contains_opt -s e erase" -l nodeps -d
+"Don't check dependencies"</tt>
-where \c __fish_contains_opt is a function that checks the commandline buffer for the presense of a specified set of options.
+where \c __fish_contains_opt is a function that checks the commandline
+buffer for the presense of a specified set of options.