Add subdirectories

darcs-hash:20050920133155-ac50b-9a14c6c664dd03afbe8e15e7c7998fcfb5c3c750.gz
This commit is contained in:
axel 2005-09-20 23:31:55 +10:00
parent 149594f974
commit 7ddecde543
188 changed files with 8114 additions and 0 deletions

1161
doc_src/Doxyfile.in Normal file

File diff suppressed because it is too large Load diff

23
doc_src/and.txt Normal file
View file

@ -0,0 +1,23 @@
\section and and - Conditionally execute a command
\subsection and-synopsis Synopsis
<tt>and COMMAND1; COMMAND2</tt>
\subsection and-description Description
The \c and builtin is used to execute one command, and if it returns
zero status, also execute a second command.
\subsection and-example Example
The following code runs the \c make command to build a program, and if it suceeds, it runs <tt>make install</tt>, which installs the program.
<pre>
and make; make install
</pre>
\c or and \c and can be nested, as in this example, that attempts to build and install a program, and removed the files created by the build process on failiure
<pre>
or and make; make install; make clean
</pre>

30
doc_src/begin.txt Normal file
View file

@ -0,0 +1,30 @@
\section begin begin - Start a new block of code
\subsection begin-synopsis Synopsis
<tt>begin; [COMMAND;...] end </tt>
\subsection begin-description Description
The \c begin builtin is used to create a new block of code. The block
is unconditionally erxecuted. Begin is equivalent to <tt>if
true</tt>. The begin command is used to group any number of commands
into a block. The reason for this is usually either to introduce a new
variable scope or to redirect the input ot output of this set of
commands as a group.
\subsection begin-example Example
The following code sets a number of variables inside of a block
scope. Since the variables are set inside the block and have local
scope, they will be automatically deleted when the block ends.
<pre>
begin
set -x PIRATE Yarrr
...
end
# This will not output anything, since PIRATE went out of scope at the end of
# the block and was killed
echo $PIRATE
</pre>

16
doc_src/bg.txt Normal file
View file

@ -0,0 +1,16 @@
\section bg bg - send to background
\subsection bg-synopsis Synopsis
<tt>bg [PID...]</tt>
\subsection bg-description Description
Sends the specified jobs to the background. A background job is
executed simultaneously with fish, and does not have access to the
keyboard. If no job is specified, the last job to be used is put in the background. If PID is specified, the jobs with the specified group ids are put in the background.
The PID of the desired process is usually found by using process globbing.
\subsection bg-example Example
<tt>bg \%0</tt> will put the job with job id 0 in the background.

16
doc_src/bind.txt Normal file
View file

@ -0,0 +1,16 @@
\section bind bind - Handle key bindings.
\subsection bind-synopsis Synopsis
<tt>bind [OPTIONS] [BINDINGS...] </tt>
The <tt>bind</tt> builtin causes fish to add the readline style bindings specified by <tt>BINDINGS</tt> to the list of key bindings. For more information on specifying keyboard bindings, use <tt>man readline</tt> to access the readline documentation.
\subsection bind-description Description
- <tt>-M MODE</tt> or <tt>--set-mode=MODE</tt> sets the current input mode to MODE.
\subsection bind-example Example
<tt>bind -M vi</tt> changes to the vi input mode
<tt>bind '"\\M-j": jobs'</tt> Binds the jobs command to the Alt-j keyboard shortcut

21
doc_src/break.txt Normal file
View file

@ -0,0 +1,21 @@
\section break break - stop the innermost currently evaluated loop
\subsection break-synopsis Synopsis
<tt>LOOP_CONSTRUCT; [COMMANDS...] break; [COMMANDS...] end</tt>
\subsection break-description Description
The \c break builtin is used to halt a currently running loop, such as a <a href="#for">for</a> loop or a <a href="#while">while</a> loop. It is usually added inside of a conditional block such as an <a href="#if">if</a> statement or a <a href="#switch">switch</a> statement.
\subsection break-example Example
The following code searches all .c files for smurfs, and halts at the first occurance.
<p>
<tt>for i in *.c;
<br>&nbsp;&nbsp;&nbsp;&nbsp;if grep smurf $i;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo Smurfs are present in $i;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;break;
<br>&nbsp;&nbsp;&nbsp;&nbsp;end;
<br>end;
</tt>
</p>

17
doc_src/builtin.txt Normal file
View file

@ -0,0 +1,17 @@
\section builtin builtin - run a builtin command
\subsection builtin-synopsis Synopsis
<tt>builtin BUILTINNAME [OPTIONS...]</tt>
\subsection builtin-description Description
- <tt>-n</tt> or <tt>--names</tt> List the names of all defined builtins
Prefixing a command with the word 'builtin' forces fish to ignore any aliases with the same name.
\subsection builtin-example Example
<tt>builtin jobs</tt>
causes fish to execute the jobs builtin, even if a function named jobs exists.

35
doc_src/case.txt Normal file
View file

@ -0,0 +1,35 @@
\section case case - conditionally execute a block of commands
\subsection case-synopsis Synopsis
<tt>switch VALUE; [case [WILDCARD...]; [COMMANDS...];...] end</tt>
\subsection case-description Description
The \c switch statement is used to perform one of several blocks of
commands depending on whether a specified value equals one of several
wildcarded values. The \c case statement is used together with the \c
switch statement in order to determine which block should be
performed.
\subsection case-example Example
If the variable \$animal contains the name of an animal, the following
code would attempt to classify it:
<p>
<pre>
switch $animal
case cat
echo evil
case wolf dog human moose dolphin whale
echo mammal
case duck goose albatros
echo bird
case shark trout stingray
echo fish
end
</pre>
</p>
<p>
If the above code was run with \$animal set to \c whale, the output would be \c mammal.
</p>

12
doc_src/cd.txt Normal file
View file

@ -0,0 +1,12 @@
\section cd cd - change directory
\subsection cd-synopsis Synopsis
<tt>cd [DIRECTORY]</tt>
\subsection cd-description Description
Changes the current directory. If <tt>DIRECTORY</tt> is supplied it
will become the new directory. If \c DIRECTORY is a relative path, the
CDPATH environment variable will be separated using the : as
separator, and the resulting list will be searched for a suitable new
current directory. If CDPATH is not set, it is assumed to be '.'. If
\c DIRECTORY is not specified, \$HOME will be the new directory.

14
doc_src/command.txt Normal file
View file

@ -0,0 +1,14 @@
\section command command - run a program
\subsection command-synopsis Synopsis
<tt>command COMMANDNAME [OPTIONS...]</tt>
\subsection command-description Description
prefixing a command with the word 'command' forces fish to ignore any aliases or builtins with the same name.
\subsection command-example Example
<tt>command ls</tt>
causes fish to execute the ls program, even if there exists a 'ls' alias.

51
doc_src/commandline.txt Normal file
View file

@ -0,0 +1,51 @@
\section commandline commandline - Set or get the current commandline buffer
\subsection commandline-synopsis Synopsis
<tt>commandline [OPTIONS] [CMD]</tt>
\subsection commandline-description Description
- \c CMD is the new value of the commandline. If unspecified, the
current value of the commandline is written to standard output.
The following switches change the way \c commandline updates the
commandline
- \c -a or \c --append do not remove the current commandline, append
the specified string at the end of it
- \c -i or \c --insert do not remove the current commandline, insert
the specified string at the current cursor position
- \c -r or \c --replace remove the current commandline and replace it
with the specified string (default)
The following switches change what part of the commandline is printed
or updated
- \c -b or \c --current-buffer select the entire buffer (default)
- \c -j or \c --current-job select the current job
- \c -p or \c --current-process select the current process
- \c -t or \c --current_token select the current token.
The following switch changes the way \c commandline prints the current
commandline
- \c -c or \c --cut-at-cursor only print selection up until the
current cursor position
- \c o or \c --tokenize tokenize the selection and print one string-type token per line
Other switches
- \c -f or \c --function inject readline functions into the
reader. This option can not be combined with any other option. It
will cause any additional arguments to be interpreted as readline
functions, and these functions will be injected into the reader, so
that they will be returned to the reader before any additional
actual keypresses are read.
\subsection commandline-example Example
<tt>commandline -j $history[3]</tt>
replaces the job under the cursor with the third item from the
commandline history.

67
doc_src/complete.txt Normal file
View file

@ -0,0 +1,67 @@
\section complete complete - edit command specific tab-completions.
\subsection complete-synopsis Synopsis
<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
- <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
- <tt>OPTION_ARGUMENTS</tt> is parameter containing a space-separated list of possible option-arguments, which may contain subshells
- <tt>DESCRIPTION</tt> is a description of what the option and/or option arguments do
- <tt>-e</tt> or <tt>--erase</tt> implies that the specified completion should be deleted
- <tt>-f</tt> or <tt>--no-files</tt> specifies that the option specified by this completion may not be followed by a filename
- <tt>-n</tt> or <tt>--condition</tt> specides a shell command that must return 0 if the completion is to be used. This makes it possible to specify completions that should only be used in some cases.
- <tt>-o</tt> or <tt>--old-option</tt> implies that the command uses old long style options with only one dash
- <tt>-p</tt> or <tt>--path</tt> implies that the string COMMAND is the full path of the command
- <tt>-r</tt> or <tt>--require-parameter</tt> specifies that the option specified by this completion always must have an option argument, i.e. may not be followed by another option
- <tt>-u</tt> or <tt>--unauthorative</tt> implies that there may be more options than the ones specified, and that fish should not assume that options not listed are spelling errors
- <tt>-x</tt> or <tt>--exclusive</tt> implies both <tt>-r</tt> and <tt>-f</tt>
Command specific tab-completions in \c fish are based on the notion
of options and arguments. An option is a parameter which begins with a
hyphen, such as '-h', '-help' or '--help'. Arguments are parameters
that do not begin with a hyphen. Fish recognizes three styles of
options, the same styles as the GNU version of the getopt
library. These styles are:
- Short options, like '-a'. Short options are a single character long, are preceeded by a single hyphen and may ge grouped together (like '-la', which is equivalent to '-l -a'). Option arguments may be specified in the following parameter ('-w 32') or by appending the option with the value ('-w32').
- Old style long options, like '-Wall'. Old style long options are more than one character long, are preceeded by a single hyphen and may not be grouped together. Option arguments are specified in the following parameter ('-ao null').
- GNU style long options, like '--colors'. GNU style long options are more than one character long, are preceeded by two hyphens, and may not be grouped together. Option arguments may be specified in the following parameter ('--quoting-style shell') or by appending the option with a '=' and the value ('--quoting-style=shell'). GNU style long options may be abbrevated so long as the abbrevation is unique ('--h' is equivalent to '--help' if help is the only long option beginning with an 'h').
\c complete only allows one of old style long options and GNU style
long options to be used on a specific command, but short options can
always be specified.
When erasing completions, it is possible to either erase all
completions for a specific command by specifying <tt>complete -e -c
COMMAND</tt>, or by specifying a specific completion option to delete
by specifying either a long, short or old style option.
\subsection complete-example Example
The short style option <tt>-o</tt> for the \c gcc command requires
that a file follows it. This can be done using writing <tt>complete
-c gcc -s o -r</tt>.
The short style option <tt>-d</tt> for the \c grep command requires
that one of the strings 'read', 'skip' or 'recurse' is used. This can
be specified writing <tt>complete -c grep -s d -x -a "read skip
recurse"</tt>.
The \c su command takes any username as an argument. Usernames are
given as the first colon-separated field in the file /etc/passwd. This
can be specified as: <tt>complete -x -c su -d "Username" -a "(cat
/etc/passwd|cut -d : -f 1)" </tt>.
The \c rpm command has several different modes. If the \c -e or \c
--erase flag has been specified, \c rpm should delete one or more
packages, in which case several switches related to deleting packages
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>
where \c __fish_contains_opt is a function that checks the commandline buffer for the presense of a specified set of options.

20
doc_src/continue.txt Normal file
View file

@ -0,0 +1,20 @@
\section continue continue - skip the rest of the current lap of the innermost currently evaluated loop
\subsection continue-synopsis Synopsis
<tt>LOOP_CONSTRUCT; [COMMANDS...] continue; [COMMANDS...] end</tt>
\subsection continue-description Description
The \c continue builtin is used to skip the current lap of the innermost currently running loop, such as a <a href="#for">for</a> loop or a <a href="#while">while</a> loop. It is usually added inside of a conditional block such as an <a href="#if">if</a> statement or a <a href="#switch">switch</a> statement.
\subsection continue-example Example
The following code removes all tmp files without smurfs.
<p>
<tt>for i in *.tmp;
<br>&nbsp;&nbsp;&nbsp;&nbsp;if grep smurf $i;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;continue;
<br>&nbsp;&nbsp;&nbsp;&nbsp;end;
<br>&nbsp;&nbsp;&nbsp;&nbsp;rm $i;
<br>end;
</tt>
</p>

33
doc_src/count.txt Normal file
View file

@ -0,0 +1,33 @@
\section count count - Count the number of elements of an array
\subsection count-synopsis Synopsis
<tt>count $VARIABLE</tt>
\subsection count-description Description
<tt>count</tt> returns the number of arguments that where passed to
it. This is usually used to find out how many elements an environment
variable array contains, but this is not the only potential usage for
the count command.
The count command does not accept any options, not even '-h'. This way
the user does not have to worry about an array containing elements
such as dashes. \c fish performs a special check when invoking the
count program, and if the user uses a help option, this help page is
displayed, but if a help option is contained inside of a variable or
is the result of expantion, it will be passed on to the count program.
\subsection count-example Example
<pre>
count $PATH
</pre>
returns the number of directories in the users PATH variable.
<pre>
count *.txt
</pre>
returns the number of files in the current working directory ending with the suffix '.txt'.

8
doc_src/dirh.txt Normal file
View file

@ -0,0 +1,8 @@
\section dirh dirh
\subsection dirh-synopsis Synopsis
<tt>dirh</tt>
\subsection dirh-description Description
<tt>dirh</tt> prints the current directory history. The current position in the
history is highlighted using <tt>$fish_color_history_current</tt>.

7
doc_src/dirs.txt Normal file
View file

@ -0,0 +1,7 @@
\section dirs dirs
\subsection dirs-synopsis Synopsis
<tt>dirs</tt>
\subsection dirs-description Description
<tt>dirs</tt> prints the current directory stack.

1832
doc_src/doc.hdr Normal file

File diff suppressed because it is too large Load diff

17
doc_src/else.txt Normal file
View file

@ -0,0 +1,17 @@
\section else else - execute command if a condition is not met.
\subsection else-synopsis Synopsis
<tt>if CONDITION; COMMAND_TRUE [else; COMMAND_FALSE] end;</tt>
\subsection else-description Description
<tt>if</tt> will execute the command CONDITION. If the commands exit
status is zero, the command COMMAND_TRUE will execute. If it is
not zero and COMMAND_FALSE is specified, COMMAND_FALSE will be
executed.
\subsection else-example Example
The command <tt>if test -f foo.txt; echo foo.txt exists; else; echo foo.txt does not exist; end</tt>
will print <tt>foo.txt exists</tt> if the file foo.txt
exists and is a regular file, otherwise it will print
<tt>foo.txt does not exist</tt>.

13
doc_src/end.txt Normal file
View file

@ -0,0 +1,13 @@
\section end end - end a block of commands.
\subsection end-synopsis Synopsis
<pre>for VARNAME in [VALUES...]; COMMANDS; end
if CONDITION; COMMAND_TRUE [else; COMMAND_FALSE] end
while CONDITION; COMMANDS; end
switch VALUE; [case [WILDCARD...]; [COMMANDS...];...] end
</pre>
\subsection end-description Description
<tt>end</tt> ends a block of commands. For more information, read the
documentation for the block constructs, such as \c if, \c for and \
while.

16
doc_src/eval.txt Normal file
View file

@ -0,0 +1,16 @@
\section eval eval - eval the specified commands
\subsection eval-synopsis Synopsis
<tt>eval [COMMANDS...]</tt>
\subsection eval-description Description
The <tt>eval</tt> builtin causes fish to evaluate the specified parameters as a command. If more than one parameter is specified, all parameters will be joined using a space character as a separator.
\subsection eval-example Example
<pre>
set cmd ls
eval $cmd
</pre>
will call the ls command.

16
doc_src/exec.txt Normal file
View file

@ -0,0 +1,16 @@
\section exec exec - Execute command in current process
\subsection exec-synopsis Synopsis
<tt>exec COMMAND [OPTIONS...]</tt>
\subsection exec-description Description
The \c exec builtin is used to replace the currently running shells
process image with a new command. On sucessfull completion, exec never
returns. exec can not be used inside a pipeline.
\subsection exec-example Example
<tt>exec emacs</tt> starts up the emacs text editor. When emacs exits,
the session will terminate.

14
doc_src/exit.txt Normal file
View file

@ -0,0 +1,14 @@
\section exit exit - exit the shell.
\subsection exit-synopsis Synopsis
<tt>exit [STATUS]</tt>
\subsection exit-description Description
The <tt>exit</tt> builtin causes fish to exit. If <tt>STATUS</tt> is
supplied, it will be converted to an integer and used as the exit
code. Otherwise the exit code will be 0.
If exit is called while sourcing a file (using the <a
href="#source">.</a> builtin) the rest of the file will be skipped,
but the shell will not exit.

14
doc_src/fg.txt Normal file
View file

@ -0,0 +1,14 @@
\section fg fg - send job to foreground
\subsection fg-synopsis Synopsis
<tt>fg [PID]</tt>
\subsection fg-description Description
Sends the specified job to the foreground. While a foreground job is
executed, fish is suspended. If no job is specified, the last job to be used is put in the foreground. If PID is specified, the job with the specified group id is put in the foreground.
The PID of the desired process is usually found by using process globbing.
\subsection fg-example Example
<tt>fg \%0</tt> will put the job with job id 0 in the foreground.

27
doc_src/fish.1.in Normal file
View file

@ -0,0 +1,27 @@
.TH fish 1 "February 25, 2005" "version @PACKAGE_VERSION@" "USER COMMANDS"
.SH NAME
fish - friendly interactive shell
.SH SYNOPSIS
.B fish
[\-h] [\-v] [\-c command] [FILE [ARGUMENTS...]]
.SH DESCRIPTION
A shell written mainly with interactive use in mind. The complete fish manuals are written in HTML format. You can find them by using the
.I
help
command from inside the fish shell.
.SH OPTIONS
.TP
\-h
display help and exit
.TP
\-c
Evaluate the specified commands instead of reading from the commandline
.TP
\-i
Specify that fish is to run in interactive mode
.TP
\-v
display version and exit
.SH AUTHOR
Axel Liljencrantz ( @PACKAGE_BUGREPORT@ )

23
doc_src/for.txt Normal file
View file

@ -0,0 +1,23 @@
\section for for - perform a set of commands multiple times.
\subsection for-synopsis Synopsis
<tt>for VARNAME in [VALUES...]; [COMMANDS...]; end</tt>
\subsection for-description Description
<tt>for</tt> is a loop construct. It will perform the commands specified
by <tt>COMMANDS</tt> multiple times. Each time the environment variable
specified by <tt>VARNAME</tt> is assigned a new value from <tt>VALUES</tt>.
\subsection for-example Example
The command
<tt>for i in foo bar baz; echo $i; end</tt>
would output:
<pre>foo
bar
baz</pre>

48
doc_src/function.txt Normal file
View file

@ -0,0 +1,48 @@
\section function function - create a function
\subsection function-synopsis Synopsis
<tt>function NAME; BODY; end </tt>
\subsection function-description Description
This builtin command is used to create a new function. A Function is a
list of commands that will be executed when the name of the function
is entered. The function
<pre>
function hi
echo hello
end
</pre>
will write <tt>hello</tt> whenever the user enters \c hi.
If the user enters any additional arguments after the function, they
are inserted into the environment variable <a href="index.html#variables-arrays">array</a> argv.
\subsection function-example Example
<pre>function ll
ls -l $argv
</pre>
will run the \c ls command, using the \c -l option, while passing on any additional files and switches to \c ls.
<pre>
function mkdir -d "Create a directory and set CWD"
mkdir $argv
if test $status = 0
switch $argv[(count $argv)]
case '-*'
case '*'
cd $argv[(count $argv)]
return
end
end
end
</pre>
will run the mkdir command, and if it is succesfull, change the
current working directory to the one just created.

17
doc_src/functions.txt Normal file
View file

@ -0,0 +1,17 @@
\section functions functions - print or erase functions
\subsection function-synopsis Synopsis
<tt>functions [-e] FUNCTIONS...</tt>
\subsection functions-description Description
This builtin command is used to print or erase functions.
- <tt>-e</tt> or <tt>--erase</tt> causes the specified functions to be erased.
- <tt>-n</tt> or <tt>--names</tt> List only the names of all defined functions
If \c functions is called with no arguments, the names and definition
of all functions are printed, otherwise, the specified function
definitions will be printed.

16
doc_src/help.txt Normal file
View file

@ -0,0 +1,16 @@
\section help help - Display fish documantation
\subsection help-synopsis Synopsis
<tt>help [SECTION]</tt>
\subsection help-description Description
The \c help command is used to display a section of the fish help documentation.
If the BROWSER environment variable is set, it will be used to display
the documentation, otherwise fish will search for a suitable browser.
\subsection help-example Example
<tt>help fg</tt> shows the documentation for the \c fg builtin.

23
doc_src/if.txt Normal file
View file

@ -0,0 +1,23 @@
\section if if - Conditionally execute a command
\subsection if-synopsis Synopsis
<tt>if CONDITION; COMMAND_TRUE [else; COMMAND_FALSE] end;</tt>
\subsection if-description Description
<tt>if</tt> will execute the command CONDITION. If the commands exit
status is zero, the command COMMAND_TRUE will execute. If it is
not zero and COMMAND_FALSE is specified, COMMAND_FALSE will be
executed.
\subsection if-example Example
<pre>
if test -f foo.txt
echo foo.txt exists
else
echo foo.txt does not exist
end
</pre>
will print <tt>foo.txt exists</tt> if the file foo.txt
exists and is a regular file, otherwise it will print
<tt>foo.txt does not exist</tt>.

13
doc_src/jobs.txt Normal file
View file

@ -0,0 +1,13 @@
\section jobs jobs - print currently running jobs
\subsection jobs-synopsis
<tt>jobs</tt>
\subsection jobs-description Description
The <tt>jobs</tt> builtin causes fish to print a list of the currently
running jobs and their status.
On systems that supports this feature, jobs will also print the CPU
usage of each job since the last command was executed. The CPU usage
is expressed as a percentage of full CPU activity. Note that on
multiprocessor systems, the total activity may be more than 100\%.

19
doc_src/mimedb.txt Normal file
View file

@ -0,0 +1,19 @@
\section mimedb mimedb - Lookup file information via the mime database
\subsection mimedb-synopsis Synopsis
<tt>mimedb [OPTIONS] FILES...</tt>
\subsection mimedb-description Description
- \c FILES is a list of files to analyse
- \c -t, \c --input-file-data the specified files type should be determined both by their filename and by their contents (Default)
- \c -f, \c --input-filename the specified files type should be determined by their filename
- \c -i, \c --input-mime the arguments are not files but mimetypes
- \c -m, \c --output-mime the output will be the mimetype of each file (Default)
- \c -f, \c --output-description the output will be the description of each mimetype
- \c -a, \c --output-action the output will be the default action of each mimetype
- \c -l, \c --launch launch the default action for the specified file(s)
- \c -h, \c --help Display a help message and exit
- \c -v, \c --version Display version number and exit

9
doc_src/nextd.txt Normal file
View file

@ -0,0 +1,9 @@
\section nextd nextd
\subsection nextd-synopsis Synopsis
<tt>nextd [-l] [pos]</tt>
\subsection nextd-description Description
<tt>nextd</tt> moves forwards <tt>pos</tt> positions in the history of visited directories;
if the end of the history has been hit, a warning is printed. If the <tt>-l></tt> flag is
specified, the current history is also displayed.

21
doc_src/not.txt Normal file
View file

@ -0,0 +1,21 @@
\section not not - Negate the exit status of a job
\subsection not-synopsis Synopsis
<tt>not COMMAND [OPTIONS...]</tt>
\subsection not-description Description
The \c not builtin is used to negate the exit status of another command.
\subsection not-example Example
The following code reports an error and exits if no file named spoon can be found.
<pre>
if not test -f spoon
echo There is no spoon
exit 1
end
</pre>

13
doc_src/open.txt Normal file
View file

@ -0,0 +1,13 @@
\section open open - Open file in it's default application
\subsection open-synopsis Synopsis
<tt>open FILES...</tt>
\subsection open-description Description
The \c open command is used to open a file in it's default application. \c open is implemented using the <a href="commands.html#mimedb">mimedb</a> command.
\subsection open-example Example
<tt>open *.txt</tt> opens all the text files in the current directory using your systems default text editor.

23
doc_src/or.txt Normal file
View file

@ -0,0 +1,23 @@
\section or or - Conditionally execute a command
\subsection or-synopsis Synopsis
<tt>or COMMAND1; COMMAND2</tt>
\subsection or-description Description
The \c or builtin is used to execute one command, and if it returns
non-zero status, also execute a second command.
\subsection or-example Example
The following code runs the \c make command to build a program, or if it fails, it runs <tt>make clean</tt>, which removes the files created by the build process
<pre>
or make; make clean
</pre>
\c or and \c and can be nested, as in this example, that attempts to build and install a program, and removed the files created by the build process on failiure
<pre>
or and make; make install; make clean
</pre>

8
doc_src/popd.txt Normal file
View file

@ -0,0 +1,8 @@
\section popd popd
\subsection popd-synopsis Synopsis
<tt>popd</tt>
\subsection popd-description Description
<tt>popd</tt> removes the top directory from the directory stack and
cd's to the new top directory.

9
doc_src/prevd.txt Normal file
View file

@ -0,0 +1,9 @@
\section prevd prevd
\subsection prevd-synopsis Synopsis
<tt>prevd [-l] [pos]</tt>
\subsection prevd-description Description
<tt>prevd</tt> moves backwards <tt>pos</tt> positions in the history of visited directories;
if the beginning of the history has been hit, a warning is printed. If the <tt>-l</tt> flag
is specified, the current history is also displayed.

9
doc_src/pushd.txt Normal file
View file

@ -0,0 +1,9 @@
\section pushd pushd
\subsection pushd-synopsis Synopsis
<tt>pushd [DIRECTORY]</tt>
\subsection pushd-description Description
The <tt>pushd</tt> function adds DIRECTORY to the top of the directory stack
and makes it the current directory. Use <tt>popd</tt> to pop it off and and
return to the original directory.

25
doc_src/random.txt Normal file
View file

@ -0,0 +1,25 @@
\section random random - Generate random number
\subsection random-synopsis Synopsis
<tt>random [SEED]</tt>
\subsection random-description Description
The \c random command is used to generate a random number in the
interval 0<=N<32767. If an argument is given, it is used to seed the
random number generator. This can be useful for debugging purposes,
where it can be desirable to get the same random number sequence
multiple times. If the random number generator is called without first
seeding it, the current time will be used as the seed.
\subsection random-example Example
The following code will count down from a random number to 1:
<pre>
for i in (seq (random) -1 1)
echo $i
sleep
end
</pre>

26
doc_src/read.txt Normal file
View file

@ -0,0 +1,26 @@
\section read read - read line of input into variables
\subsection read-synopsis Synopsis
<tt>read [OPTIONS] [VARIABLES...]</tt>
\subsection read-description Description
The <tt>read</tt> builtin causes fish to read one line from standard
input and store the result in one or more environment variables.
- <tt>-e</tt> or <tt>--export</tt> specifies that the variables will be exported to subshells.
- <tt>-g</tt> or <tt>--global</tt> specifies that the variables will be made global.
- <tt>-pPROMPT_CMD</tt> or <tt>--prompt=PROMPT_CMD</tt> specifies that the output of the shell command PROMPT_CMD should be used as the prompt for the interactive mode prompt. The default prompt command is <tt>set_color green; echo read; set_color normal; echo "> "</tt>.
- <tt>-cCMD</tt> or <tt>--command=CMD</tt> specifies that the initial string in the interactive mode command buffer should be CMD.
Read starts by reading a single line of input from stdin, the line is
then tokenized using the <tt>IFS</tt> environment variable. Each variable
specified in <tt>VARIABLES</tt> is then assigned one tokenized string
element. If there are more tokens than variables, the complete
remainder is assigned to the last variable.
\subsection read-example Example
<tt>echo hello|read foo</tt>
Will cause the variable \$foo to be assigned the value hello.

22
doc_src/return.txt Normal file
View file

@ -0,0 +1,22 @@
\section return return - Stop the innermost currently evaluated function
\subsection return-synopsis Synopsis
<tt>function NAME; [COMMANDS...] break [STATUS]; [COMMANDS...] end</tt>
\subsection return-description Description The \c return builtin is
used to halt a currently running function. It is usually added inside
of a conditional block such as an <a href="#if">if</a> statement or a
<a href="#switch">switch</a> statement to conditionally stop the
executing function and return to the caller.
- \c STATUS is the return status of the function. If unspecified, the status is set to 0.
\subsection return-example Example
The following code is an implementation of the false program as a fish builtin
<p>
<pre>function false
return 1
end</pre>
</p>

40
doc_src/set.txt Normal file
View file

@ -0,0 +1,40 @@
\section set set - Handle environment variables.
\subsection set-synopsis Synopsis
<tt>set [OPTIONS] VARIABLE_NAME [VALUES...]</tt>
The <tt>set</tt> builtin causes fish to assign the variable <tt>VARIABLE_NAME</tt> the values <tt>VALUES...</tt>.
\subsection set-description Description
- <tt>-e</tt> or <tt>--erase</tt> causes the specified environment variables to be erased
- <tt>-U</tt> or <tt>--universal</tt> causes the specified environment variable to be made universal. If this option is supplied, the variable will be shared between all the current users fish instances on the current computer, and will be preserved across restarts of the shell.
- <tt>-g</tt> or <tt>--global</tt> causes the specified environment variable to be made global. If this option is not supplied, the specified variable will dissapear when the current block ends
- <tt>-l</tt> or <tt>--local</tt> forces the specified environment variable to be made local to the current block, even if the variable already exists and is non-local
- <tt>-n</tt> or <tt>--names</tt> List only the names of all defined variables
- <tt>-x</tt> or <tt>--export</tt> causes the specified environment variable to be exported to child processes
- <tt>-u</tt> or <tt>--unexport</tt> causes the specified environment not to be exported to child processes
If set is called with no arguments, the names and values of all
environment variables are printed.
If set is called with only one argument, the scope of the variable
with the given name will be changed as specified, but it's value will
remain the same. If the variable did not previously exist, it's value
will be an empty string.
If the \c -e or \c --erase option is specified, all the variables
specified by the following arguments will be erased
If a variable is set to more than one value, the variable will be an
array with the specified elements.
If the variable name is one or more array elements, such as <tt>PATH[1
3 7]</tt>, only those array elements specified will be changed.
\subsection set-example Example
<tt>set foo hi</tt> sets the value of the variable foo to be hi.
<tt>set -e smurf</tt> removes the variable \c smurf.
<tt>set PATH[4] ~/bin</tt> changes the fourth element of the \c PATH array to \c ~/bin

19
doc_src/set_color.txt Normal file
View file

@ -0,0 +1,19 @@
\section set_color set_color - Set the terminal color
\subsection set_color-synopsis Synopsis
<tt>set_color [-v --version] [-h --help] [-b --background COLOR] [COLOR]</tt>
\subsection set_color-description Description
Change the foreground and/or background color of the terminal.
COLOR is one of black, red, green, brown, yellow, blue, magenta,
purple, cyan, white and normal.
- \c -b, \c --background Set the background color
- \c -h, \c --help Display help message and exit
- \c -v, \c --version Display version and exit
Calling <tt>set_color normal</tt> will set the terminal color to
whatever is the default color of the terminal.

19
doc_src/source.txt Normal file
View file

@ -0,0 +1,19 @@
\section source . - Evaluate contents of file.
\subsection source-synopsis Synopsis
<tt>. FILENAME</tt>
\subsection source-description Description
Evaluates the commands of the specified file in the current
shell. This is different from starting a new process to perform the
commands (i.e. <tt>fish < FILENAME</tt>) since the commands will be
evaluated by the current shell, which means that changes in
environment variables, etc., will remain.
\subsection source-example Example
<tt>. ~/.fish</tt>
causes fish to reread its initialization file.

37
doc_src/switch.txt Normal file
View file

@ -0,0 +1,37 @@
\section switch switch - conditionally execute a block of commands
\subsection switch-synopsis Synopsis
<tt>switch VALUE; [case [WILDCARD...]; [COMMANDS...];...] end</tt>
\subsection switch-description Description
The \c switch statement is used to perform one of several blocks of
commands depending on whether a specified value equals one of several
wildcarded values.
\subsection switch-example Example
If the variable \$animal contins the name of an animal, the
following code would attempt to classify it:
<p>
<pre>
switch $animal
case cat
echo evil
case wolf dog human moose dolphin whale
echo mammal
case duck goose albatros
echo bird
case shark trout stingray
echo fish
end
</pre>
</p>
<p>
If the above code was run with \$animal set to \c whale, the output
would be \c mammal.
</p>

14
doc_src/tokenize.txt Normal file
View file

@ -0,0 +1,14 @@
\section tokenize tokenize - tokenize a string
\subsection tokenize-synopsis Synopsis
<tt>tokenize [STRING...]</tt>
\subsection tokenize-description Description
- STRING is the string or list of strings to tokenize. Each token will be printed on a line by itself
- \c -e, \c --with-empty allow empty tokens
- \c -n, \c --no-empty ignore empty tokens (Default)
- <tt>-d DELIMITER</tt>, <tt>--delimiter=DELIMITER</tt> is the list of characters that will be used as delimiters. If unspecified, the IFS environment variable will be used as the delimiter string,
- \c -h, \c --help Display help message and exit
- \c -v, \c --version Display version and exit

13
doc_src/while.txt Normal file
View file

@ -0,0 +1,13 @@
\section while while - perform a command multiple times
\subsection while-synopsis Synopsis
<tt>while CONDITION; COMMANDS; end</tt>
\subsection while-synopsis Synopsis
The <tt>while</tt> builtin causes fish to continually execute the command COMMANDS while the command CONDITION returns with status 0.
\subsection while-example Example
<tt>while test -f foo.txt; echo file exists; sleep 10; end</tt>
causes fish to print the line 'file exists' at 10 second intervals as long as the file foo.txt exists.

View file

@ -0,0 +1,8 @@
#apm
complete -f -c apm -s V -l version -d "print version"
complete -f -c apm -s v -l verbose -d "print APM info"
complete -f -c apm -s m -l minutes -d "print time remaining"
complete -f -c apm -s M -l monitor -d "monitor status info"
complete -f -c apm -s S -l standby -d "request APM standby mode"
complete -f -c apm -s s -l suspend -d "request APM suspend mode"
complete -f -c apm -s d -l debug -d "APM status debuggin info"

View file

@ -0,0 +1,20 @@
function __fish_complete_apropos
if test (commandline -ct)
set str (commandline -ct)
apropos $str|sed -e 's/^\(.*'$str'\([^ ]*\).*\)$/'$str'\2\t\1/'
end
end
complete -xc apropos -a "(__fish_complete_apropos)" -d "Whatis entry"
complete -c apropos -s h -l help -d "apropos command help"
complete -f -c apropos -s d -l debug -d "print debugging info"
complete -f -c apropos -s v -l verbose -d "print verbose warning"
complete -f -c apropos -s r -l regex -d "keyword as regex"
complete -f -c apropos -s w -l wildcard -d "keyword as wildwards"
complete -f -c apropos -s e -l exact -d "keyword as exactly match"
complete -x -c apropos -s m -l system -d "search for other system"
complete -x -c apropos -s M -l manpath -a "(echo $MANPATH)" -d "specify man path"
complete -x -c apropos -s C -l config-file -d "specify a conf file"
complete -f -c apropos -s V -l version -d "Display version"

View file

@ -0,0 +1,29 @@
#apt-build
complete -c apt-build -l help -d "apt-build command help"
complete -f -c apt-build -a update -d "update list of packages"
complete -f -c apt-build -a upgrade -d "upgrade packages"
complete -f -c apt-bulid -a world -d "rebuild your system"
complete -x -c apt-build -a install -d "build and install a new pkg"
complete -x -c apt-build -a source -d "download and extract a src"
complete -x -c apt-build -a info -d "info on a pkg"
complete -x -c apt-build -a remove -d "remove packages"
complete -x -c apt-build -a clean-build -d "erase built pkgs"
complete -x -c apt-build -a build-source -d "build src without install"
complete -x -c apt-build -a clean-sources -d "clean src dirs"
complete -x -c apt-build -a update-source -d "update src and rebuild them"
complete -x -c apt-build -a update-repository -d "update the repository"
complete -f -c apt-build -l nowrapper -d "do not use gcc wrapper"
complete -f -c apt-build -l remove-builddep -d "remove build-dep"
complete -f -c apt-build -l no-source -d "do not download source"
complete -f -c apt-build -l build-dir -d "specify build-dir"
complete -f -c apt-build -l rebuild -d "rebuild a package"
complete -f -c apt-build -l reinstall -d "rebuild and install an installed pkg"
complete -r -f -c apt-build -l build-command -d "use <command> to build"
complete -r -c apt-build -l patch -d "apply <file> patch"
complete -c apt-build -s p -l patch-strip -d "prefix to strip on patch"
complete -c apt-build -s y -l yes -d "assume yes"
complete -c apt-build -l purge -d "use purge instead of remove"
complete -c apt-build -l noupdate -d "do not run update"
complete -r -c apt-build -l source-list -d "specify sources.list file"
complete -f -c apt-build -s v -l version -d "show version"

View file

@ -0,0 +1,33 @@
#apt-cache
complete -c apt-cache -s h -l help -d "apt-cache command help"
complete -c apt-cache -a add -d "add index files Debug only"
complete -f -c apt-cache -a gencaches -d "build apt cache"
complete -x -c apt-cache -a showpkg -d "show package info"
complete -f -c apt-cache -a stats -d "show cache statistics"
complete -x -c apt-cache -a showsrc -d "show source package"
complete -f -c apt-cache -a dump -d "show packages in cache"
complete -f -c apt-cache -a dumpavail -d "print available list"
complete -f -c apt-cache -a unmet -d "list unmet dep in cache"
complete -x -c apt-cache -a show -d "display package record"
complete -x -c apt-cache -a search -d "search pkgname by REGEX"
complete -c apt-cache -l full -a search -d "search full package name"
complete -x -c apt-cache -l names-only -a search -d "search pkgname only"
complete -x -c apt-cache -a depends -d "list dep for the package"
complete -x -c apt-cache -a rdepends -d "list reverse dep for the package"
complete -x -c apt-cache -a pkgnames -d "print package name by prefix"
complete -x -c apt-cache -a dotty -d "generate dotty output for packages"
complete -x -c apt-cache -a policy -d "debug preferences file"
complete -x -c apt-cache -a madison -d "mimic madison"
complete -r -c apt-cache -s p -l pkg-cache -d "select file to store pkg cache"
complete -r -c apt-cache -s s -l src-cache -d "select file to store src cache"
complete -f -c apt-cache -s q -l quiet -d "quiet output"
complete -f -c apt-cache -s i -l important -d "print important deps"
complete -f -c apt-cache -s a -l all-versions -d "print full records"
complete -f -c apt-cache -s g -l generate -d "auto-gen package cache"
complete -f -c apt-cache -l all-names -d "print all names"
complete -f -c apt-cache -l recurse -d "dep and rdep recursive"
complete -f -c apt-cache -l installed -d "limit to installed"
complete -f -c apt-cache -s v -l version -d "show version"
complete -r -c apt-cache -s c -l config-file -d "specify config file"
complete -x -c apt-cache -s o -l option -d "specify options"

View file

@ -0,0 +1,13 @@
#apt-cdrom
complete -c apt-cdrom -s h -l help -d "apt-cdrom command help"
complete -r -c apt-cdrom -a add -d "add new disc to source list"
complete -x -c apt-cdrom -a ident -d "report identity of disc"
complete -r -c apt-cdrom -s d -l cdrom -d "mount point"
complete -f -c apt-cdrom -s r -l rename -d "rename a disc"
complete -f -c apt-cdrom -s m -l no-mount -d "no mounting"
complete -f -c apt-cdrom -s f -l fast -d "fast copy"
complete -f -c apt-cdrom -s a -l thorough -d "thorough pkg scan"
complete -f -c apt-cdrom -s n -l no-act -d "no changes"
complete -f -c apt-cdrom -s v -l version -d "show version"
complete -r -c apt-cdrom -s c -l config-file -d "specify config file"
complete -x -c apt-cdrom -s o -l option -d "specify options"

View file

@ -0,0 +1,7 @@
#apt-config
complete -c apt-config -s h -l help -d "apt-config command help"
complete -c apt-config -a shell -d "access config file from shell"
complete -f -c apt-config -a dump -d "dump contents of config file"
complete -f -c apt-config -s v -l version -d "show version"
complete -r -c apt-config -s c -l config-file -d "specify config file"
complete -x -c apt-config -s o -l option -d "specify options"

View file

@ -0,0 +1,7 @@
#apt-extracttemplates
complete -c apt-extracttemplates -s h -l help -d "apt-extracttemplates command help"
complete -r -c apt-extracttemplates -s t -d "set temp dir"
complete -r -c apt-extracttemplates -s c -d "specifiy config file"
complete -r -c apt-extracttemplates -s o -d "specify options"

View file

@ -0,0 +1,17 @@
#apt-file
complete -c apt-file -s h -l help -d "apt-file command help"
complete -x -c apt-file -a update -d "resync pkg contents from source"
complete -r -c apt-file -a search -d "search pkg containing pattern"
complete -r -c apt-file -a list -d "list contents of a pkg matching pattern"
complete -x -c apt-file -a purge -d "remove all gz files from cache"
complete -r -c apt-file -s c -l cache -d "set cache dir"
complete -f -c apt-file -s v -l verbose -d "run in verbose"
complete -c apt-file -s d -l cdrom-mount -d "use cdrom-mount-point"
complete -f -c apt-file -s i -l ignore-case -d "do not expand pattern"
complete -f -c apt-file -s x -l regexp -d "pattern is regexp"
complete -f -c apt-file -s V -l version -d "show version"
complete -f -c apt-file -s a -l architecture -d "set arch"
complete -r -c apt-file -s s -l sources-list -a "(ls /etc/apt)" -d "set sources.list file"
complete -f -c apt-file -s l -l package-only -d "only display pkg name"
complete -f -c apt-file -s F -l fixed-string -d "do not expand pattern"
complete -f -c apt-file -s y -l dummy -d "run in dummy mode"

View file

@ -0,0 +1,17 @@
#apt-ftparchive
complete -c apt-ftparchive -s h -l help -d "apt-ftparchive command help"
complete -f -c apt-ftparchive -a packages -d "generate pkg from source"
complete -f -c apt-ftparchive -a sources -d "generate source index file"
complete -f -c apt-ftparchive -a contents -d "generate contents file"
complete -f -c apt-ftparchive -a release -d "generate release file"
complete -f -c apt-ftparchive -a clean -d "remove records"
complete -f -c apt-ftparchive -l md5 -d "generate MD5 sums"
complete -f -c apt-ftparchive -s d -l db -d "use a binary db"
complete -f -c apt-ftparchive -s q -l quiet -d "quiet mode"
complete -f -c apt-ftparchive -l delink -d "perform delinking"
complete -f -c apt-ftparchive -l contents -d "perform contents generation"
complete -c apt-ftparchive -s s -l source-override -d "use source override"
complete -f -c apt-ftparchive -l readonly -d "make caching db readonly"
complete -f -c apt-ftparchive -s v -l version -d "show version"
complete -r -c apt-ftparchive -s c -l config-file -d "use config file"
complete -r -c apt-ftparchive -s o -l option -d "set config options"

View file

@ -0,0 +1,64 @@
#completion for apt-get
function __fish_apt_no_subcommand -d "test if apt has yet to be given the subcommand"
for i in (commandline -opc)
if contains -- $i update upgrade dselect-upgrade dist-upgrade install remove source build-dep check clean autoclean
return 1
end
end
return 0
end
function __fish_apt_use_package -d "Test if apt command should have packages as potential completion"
for i in (commandline -opc)
if contains -- $i contains install remove build-dep
return 0
end
end
return 1
end
complete -c apt-get -n "__fish_apt_use_package" -a "(__fish_print_packages)" -d "Package"
complete -c apt-get -s h -l help -d "apt-get command help"
complete -f -n "__fish_apt_no_subcommand" -c apt-get -a "update" -d "update sources"
complete -f -n "__fish_apt_no_subcommand" -c apt-get -a "upgrade" -d "upgrade or install newest packages"
complete -f -n "__fish_apt_no_subcommand" -c apt-get -a "dselect-upgrade" -d "use with dselect front-end"
complete -f -n "__fish_apt_no_subcommand" -c apt-get -a "dist-upgrade" -d "distro upgrade"
complete -f -n "__fish_apt_no_subcommand" -c apt-get -a "install" -d "install one or more packages"
complete -f -n "__fish_apt_no_subcommand" -c apt-get -a "remove" -d "remove one or more packages"
complete -f -n "__fish_apt_no_subcommand" -c apt-get -a "source" -d "fetch source packages"
complete -f -n "__fish_apt_no_subcommand" -c apt-get -a "build-dep" -d "install/remove packages for dependencies"
complete -f -n "__fish_apt_no_subcommand" -c apt-get -a "check" -d "update cache and check dep"
complete -f -n "__fish_apt_no_subcommand" -c apt-get -a "clean" -d "clean local caches and packages"
complete -f -n "__fish_apt_no_subcommand" -c apt-get -a "autoclean" -d "clean packages no longer be downloaded"
complete -c apt-get -s d -l download-only -d "Download Only"
complete -c apt-get -s f -l fix-broken -d "correct broken deps"
complete -c apt-get -s m -l fix-missing -d "ignore missing packages"
complete -c apt-get -l no-download -d "Disable downloading packages"
complete -c apt-get -s q -l quiet -d "quiet output"
complete -c apt-get -s s -l simulate -d "perform a siulation"
complete -c apt-get -s y -l assume-yes -d "automatic yes to prompts"
complete -c apt-get -s u -l show-upgraded -d "show upgraded packages"
complete -c apt-get -s V -l verbose-versions -d "show full versions for packages"
complete -c apt-get -s b -l compile -d "compile source packages"
complete -c apt-get -s b -l build -d "compile source packages"
complete -c apt-get -l ignore-hold -d "ignore package Holds"
complete -c apt-get -l no-upgrade -d "Do not upgrade packages"
complete -c apt-get -l force-yes -d "Force yes"
complete -c apt-get -l print-uris -d "print the URIs"
complete -c apt-get -l purge -d "use purge instead of remove"
complete -c apt-get -l reinstall -d "reinstall packages"
complete -c apt-get -l list-cleanup -d "erase obsolete files"
complete -c apt-get -s t -l target-release -d "control default input to the policy engine"
complete -c apt-get -l trivial-only -d "only perform operations that are trivial"
complete -c apt-get -l no-remove -d "abort if any packages are to be removed"
complete -c apt-get -l only-source -d "only accept source packages"
complete -c apt-get -l diff-only -d "download only diff file"
complete -c apt-get -l tar-only -d "download only tar file"
complete -c apt-get -l arch-only -d "only process arch-dep build-deps"
complete -c apt-get -l allow-unauthenticated -d "ignore non-authenticated packages"
complete -c apt-get -s v -l version -d "show program version"
complete -r -c apt-get -s c -l config-file -d "specify a config file"
complete -r -c apt-get -s o -l option -d "set a config option"

View file

@ -0,0 +1,5 @@
#apt-key
complete -r -c apt-key -a add -d "add a new key"
complete -f -c apt-key -a del -d "remove a key"
complete -f -c apt-key -a list -d "list trusted keys"

View file

@ -0,0 +1,25 @@
#apt-listbugs
complete -c apt-listbugs -s h -l help -d "apt-listbugs command help"
complete -f -c apt-listbugs -s s -l severity -a "critical grave" -d "set severity"
complete -f -c apt-listbugs -s T -l tag -d "Targs you want to see"
complete -f -c apt-listbugs -s S -l stats -d "outstanding 'pending upload' resolved done open" -d "status you want to see"
complete -f -c apt-listbugs -s l -l showless -d "ignore bugs in your system"
complete -f -c apt-listbugs -s g -l showgreater -d "ignore newer bugs than upgrade pkgs"
complete -f -c apt-listbugs -s D -l show-downgrade -d "bugs for downgrade pkgs"
complete -f -c apt-listbugs -s H -l hostname -a "osdn.debian.or.jp" -d "Bug Tracking system"
complete -f -c apt-listbugs -s p -l port -d "specify port for web interface"
complete -f -c apt-listbugs -s R -l release-critical -d "use daily bug report"
complete -f -c apt-listbugs -s I -l index -d "use the raw index.db"
complete -f -c apt-listbugs -s X -l indexdir -d "specify index dir"
complete -f -c apt-listbugs -s P -l pin-priority -d "specify Pin-Priority value"
complete -f -c apt-listbugs -l title -d "specify the title of rss"
complete -f -c apt-listbugs -s f -l force-download -d "retrieve fresh bugs"
complete -f -c apt-listbugs -s q -l quiet -d "do not display progress bar"
complete -f -c apt-listbugs -s c -l cache-dir -a "/var/cache/apt-listbugs/" -d "specify local cache dir"
complete -f -c apt-listbugs -s t -l timer -d "specify the expire cache timer"
complete -c apt-listbugs -s C -l aptconf -d "specify apt config file"
complete -f -c apt-listbugs -s y -l force-yes -d "assume all yes"
complete -f -c apt-listbugs -s n -l force-no -d "assume all no"
complete -c apt-listbugs -a list -d "list bugs from pkgs"
complete -c apt-listbugs -a rss -d "list bugs in rss format"

View file

@ -0,0 +1,13 @@
#apt-listchanges
complete -c apt-listchanges -l help -d "apt-listchanges command help"
complete -c apt-listchanges -l apt -d "read filenames from pipe"
complete -f -c apt-listchanges -s v -l verbose -d "verbose info"
complete -f -c apt-listchanges -s f -l frontend -a "pager browser xterm-pager xterm-browser text mail none" -d "select fronend interface"
complete -r -f -c apt-listchanges -l email-address -d "specify email address"
complete -f -c apt-listchanges -s c -l confirm -d "ask confirmation"
complete -f -c apt-listchanges -s a -l all -d "display all changelogs"
complete -r -c apt-listchanges -l save_seen -d "avoid changelogs from db in named file"
complete -r -f -c apt-listchanges -l which -a "news changelogs both" -d "select display"
complete -f -c apt-listchanges -s h -l headers -d "insert header"
complete -f -c apt-listchanges -l debug -d "display debug info"
complete -r -c apt-listchanges -l profile -d "select an option profile"

View file

@ -0,0 +1,23 @@
#apt-move
complete -c apt-move -a get -d "generate master file"
complete -c apt-move -a getlocal -d "alias of get"
complete -f -c apt-move -a move -d "move pkgs to local tree"
complete -f -c apt-move -a delete -d "delete obsolete pkg files"
complete -f -c apt-move -a packages -d "build new local files"
complete -f -c apt-move -a fsck -d "rebuild index files"
complete -f -c apt-move -a update -d "move pkgs from cache to local mirror"
complete -f -c apt-move -a local -d "alias to move delete packages"
complete -f -c apt-move -a localupdate -d "alias for update"
complete -f -c apt-move -a mirror -d "download pkg missing from mirror"
complete -f -c apt-move -a sync -d "sync pkgs installed"
complete -f -c apt-move -a exclude -d 'test $LOCALDIR/.exclude file'
complete -c apt-move -a movefile -d "move file from CLI"
complete -f -c apt-move -a listbin -d "mirror|sync|repo"
complete -f -c apt-move -a mirrorbin -d "fetch pkg from STDIN"
complete -f -c apt-move -a mirrorsrc -d "fetch src pkg from STDIN"
complete -f -c apt-move -s a -d "process all pkgs"
complete -c apt-move -s c -d "use specific conffile"
complete -f -c apt-move -s d -d "use specific dist"
complete -f -c apt-move -s f -d "force deletion"
complete -f -c apt-move -s q -d "suppresses normal output"
complete -f -c apt-move -s t -d "test run"

View file

@ -0,0 +1,10 @@
#apt-proxy-import
complete -c apt-proxy-import -s h -l help -d "apt-proxy-import command help"
complete -f -c apt-proxy-import -s V -l version -d "print version"
complete -f -c apt-proxy-import -s v -l verbose -d "verbose info"
complete -f -c apt-proxy-import -s q -l quiet -d "no message to STDOUT"
complete -f -c apt-proxy-import -s r -l recursive -d "recurse into subdir"
complete -r -c apt-proxy-import -s i -l import-dir -a "(ls -Fp|grep /$)" -d "dir to import"
complete -r -c apt-proxy-import -s u -l user -a "(__fish_complete_users)" -d "change to user"
complete -r -c apt-proxy-import -s d -l debug -d "debug level[default 0]"

View file

@ -0,0 +1,13 @@
#apt-rdepends
complete -c apt-rdepends -l help -d "apt-rdepends command help"
complete -f -c apt-rdepends -s b -l build-depends -d "show bulid deps"
complete -f -c apt-rdepends -s d -l dotty -d "generate a dotty graph"
complete -f -c apt-rdepends -s p -l print-state -d "show state of deps"
complete -f -c apt-rdepends -s r -l reverse -d "list pkgs depending on"
complete -r -f -c apt-rdepends -s f -l follow -d "only follow DEPENDS recursively"
complete -r -f -c apt-rdepends -s s -l show -d "only show DEPENDS"
complete -r -f -c apt-rdepends -l state-follow -d "only follow STATES recursively"
complete -r -f -c apt-rdepends -l state-show -d "only show STATES"
complete -f -c apt-rdepends -l man -d "display man page"
complete -f -c apt-rdepends -l version -d "print version"

View file

@ -0,0 +1,4 @@
#apt-setup
complete -c apt-setup -a probe -d "probe a CD"
complete -c apt-setup -s N -d "run in noninteractive mode"

View file

@ -0,0 +1,10 @@
#apt-show-source
complete -c apt-show-source -s h -l help -d "apt-show-source command help"
complete -r -c apt-show-source -l status-file -d "read pkg from FILE" -f
complete -r -c apt-show-source -o stf -d "read pkg from FILE" -f
complete -r -c apt-show-source -l list-dir -a "(ls -Fp .|grep /$) /var/lib/apt/lists" -d "specify APT list dir"
complete -r -c apt-show-source -o ld -a "(ls -Fp .|grep /$) /var/lib/apt/lists" -d "specify APT list dir"
complete -r -c apt-show-source -s p -l package -a "(apt-cache pkgnames)" -d "list PKG info"
complete -f -c apt-show-source -l version-only -d "print version only"
complete -f -c apt-show-source -s a -l all -d "print all src pkgs with version"
complete -f -c apt-show-source -s v -l verbose -d "verbose message"

View file

@ -0,0 +1,14 @@
#apt-show-versions
complete -c apt-show-source -s h -l help -d "apt-show-versions command help"
complete -r -c apt-show-versions -s p -l packages -a "(apt-cache pkgnames)" -d "print PKG versions"
complete -f -c apt-show-versions -s r -l regex -d "using regex"
complete -f -c apt-show-versions -s u -l upgradeable -d "print only upgradeable pkgs"
complete -f -c apt-show-versions -s a -l allversions -d "print all versions"
complete -f -c apt-show-versions -s b -l brief -d "print pkg name/distro"
complete -f -c apt-show-versions -s v -l verbose -d "print verbose info"
complete -f -c apt-show-versions -s i -l initialize -d "init or update cache only"
complete -r -c apt-show-versions -l status-file -d "read pkg from FILE"
complete -r -c apt-show-versions -o stf -d "read pkg from FILE"
complete -r -c apt-show-versions -l list-dir -a "(ls -Fp .|grep /$) /var/lib/apt/lists /var/state/apt/lists" -d "specify APT list dir"
complete -r -c apt-show-versions -o ld -a "(ls -Fp .|grep /$) /var/lib/apt/lists /var/state/apt/lists" -d "specify APT list dir"

View file

@ -0,0 +1,7 @@
#apt-sortpkgs
complete -c apt-sortpkgs -s h -l help -d "apt-sortpkgs command help"
complete -f -c apt-sortpkgs -s s -l source -d "use source index field"
complete -f -c apt-sortpkgs -s v -l version -d "show version"
complete -r -c apt-sortpkgs -s c -l conf-file -d "specify conffile"
complete -r -f -c apt-sortpkgs -s o -l option -d "set config options"

View file

@ -0,0 +1,20 @@
#apt-spy
complete -c apt-spy -s h -d "apt-spy command help"
complete -f -c apt-spy -s d -a "stable testing unstable" -d "Debian distribtion"
complete -f -c apt-spy -s a -a "Africa Asia Europe North-America Oceania South-America" -d "servers in the areas"
complete -c apt-spy -s c -d "conf file"
complete -f -c apt-spy -s e -d "finish after number of servers"
complete -c apt-spy -s f -d "file to grab servers"
complete -c apt-spy -s i -d "file as input"
complete -c apt-spy -s m -d "mirror-list file"
complete -c apt-spy -s o -d "output sources.list file"
complete -f -c apt-spy -s p -d "use proxy server"
complete -f -c apt-spy -s s -d "comma separated country list"
complete -f -c apt-spy -s t -d "how long in sec to download"
complete -f -c apt-spy -s u -d "custom URL to get mirror list"
complete -c apt-spy -s w -d "write top servers to file"
complete -f -c apt-spy -s n -d "number of top servers"
complete -f -c apt-spy -a "update" -d "update mirror list"
complete -f -c apt-spy -s v -d "version number"

View file

@ -0,0 +1,24 @@
#apt-src
complete -c apt-src -s h -l help -d "apt-src command help"
complete -f -c apt-src -a "update" -d "update list of src pkgs"
complete -f -c apt-src -a "install" -d "install src pkgs"
complete -f -c apt-src -a "upgrade" -d "upgrade src pkgs"
complete -f -c apt-src -a "remove" -d "remove src pkgs"
complete -f -c apt-src -a "build" -d "build src pkgs"
complete -f -c apt-src -a "clean" -d "clean src pkgs"
complete -f -c apt-src -a "import" -d "detect known src tree"
complete -f -c apt-src -a "list" -d "list installed src pkg\(s\)"
complete -f -c apt-src -a "location" -d "root src tree"
complete -f -c apt-src -a "version" -d "version of src pkg"
complete -f -c apt-src -a "name" -d "name of the src pkg"
complete -f -c apt-src -s b -l build -d "build src pkgs"
complete -f -c apt-src -s i -l installdebs -d "install after build"
complete -f -c apt-src -s p -l patch -d "patch local changes"
complete -r -c apt-src -s l -l location -d "specify a dir"
complete -c apt-src -s c -l here -d "run on current dir"
complete -f -c apt-src -l upstream-version -d "omit debian version"
complete -f -c apt-src -s k -l keep-built -d "do not del built files"
complete -f -c apt-src -s n -l no-delete-source -d "do not del source files"
complete -f -c apt-src -l version -d "source tree version"
complete -f -c apt-src -s q -l quiet -d "output to /dev/null"
complete -f -c apt-src -s t -l trace -d "output trace"

View file

@ -0,0 +1,10 @@
#apt-zip-inst
complete -c apt-zip-inst -s h -l help -d "apt-zip-inst command help"
complete -f -c apt-zip-inst -s V -l version -d "show version"
complete -c apt-zip-inst -s m -l medium -d "removable medium"
complete -f -c apt-zip-inst -s a -l aptgetaction -a "dselect-upgrade upgrade dist-upgrade" -d "select an action"
complete -c apt-zip-inst -s p -l packages -d "list of pkgs to install"
complete -f -c apt-zip-inst -s f -l fix-broken -d "fix broken option"
complete -c apt-zip-inst -l skip-mount -d "specify a non-mountpoint dir"

View file

@ -0,0 +1,13 @@
#apt-zip-list
complete -c apt-zip-list -s h -l help -d "apt-zip-list command help"
complete -f -c apt-zip-list -s V -l version -d "show version"
complete -c apt-zip-list -s m -l medium -d "removable medium"
complete -f -c apt-zip-list -s a -l aptgetaction -a "dselect-upgrade upgrade dist-upgrade" -d "select an action"
complete -c apt-zip-list -s p -l packages -d "list of pkgs to install"
complete -f -c apt-zip-list -s f -l fix-broken -d "fix broken option"
complete -c apt-zip-list -l skip-mount -d "specify a non-mountpoint dir"
complete -c apt-zip-list -s M -l method -d "select a method"
complete -c apt-zip-list -s o -l options -a "tar restart" -d "specify options"
complete -c apt-zip-list -s A -l accept -a "http ftp" -d "accept protocols"
complete -c apt-zip-list -s R -l reject -a "http ftp" -d "reject protocols"

11
init/completions/arp.fish Normal file
View file

@ -0,0 +1,11 @@
#completion for arp
complete -c arp -s v -l verbose -d "verbose mode"
complete -c arp -s n -l numeric -d "numerical address"
complete -x -c arp -s H -l tw-type -a "ether arcnet pronet ax25 netrom" -d "class of hw type"
complete -c arp -s a -l display -x -a "(__fish_print_hostnames)" -d "show arp entries"
complete -x -c arp -s d -l delete -a "(__fish_print_hostnames)" -d "remove an entry for hostname"
complete -c arp -s D -l use-device -d "use hardware address"
complete -x -c arp -s i -l device -a "(__fish_print_interfaces)" -d "select interface"
complete -x -c arp -s s -l set -d "Manually create ARP address" -a "(__fish_print_hostnames)"
complete -f -c arp -s f -l file -d "taken addr from filename, default /etc/ethers"

10
init/completions/at.fish Normal file
View file

@ -0,0 +1,10 @@
#at
complete -f -c at -s V -d "print version"
complete -f -c at -s q -d "use specified queue"
complete -f -c at -s m -d "send mail to user"
complete -c at -s f -x -a "(__fish_complete_suffix (commandline -ct) '' 'At job')" -d "Read job from file"
complete -f -c at -s l -d "alias for atq"
complete -f -c at -s d -d "alias for atrm"
complete -f -c at -s v -d "show the time"
complete -f -c at -s c -d "cat the jobs listed"

View file

@ -0,0 +1,6 @@
#atd
complete -f -c atd -s l -d "limiting load factor"
complete -f -c atd -s b -d "minimum interval in seconds"
complete -f -c atd -s d -d "Debug mode"
complete -f -c atd -s s -d "process at queue only once"

View file

@ -0,0 +1,4 @@
#atq
complete -f -c atq -s V -d "print version"
complete -f -c atq -s q -d "use specified queue"

View file

@ -0,0 +1,2 @@
#atrm
complete -f -c atrm -s V -d "print version"

9
init/completions/bc.fish Normal file
View file

@ -0,0 +1,9 @@
# Completions for the binary calculator
complete -c bc -s i -l interactive -d "Force interactive mode"
complete -c bc -s l -l math-lib -d "Define math library"
complete -c bc -s w -l warn -d "Give warnings for extensions to POSIX bc"
complete -c bc -s s -l standard -d "Process exactly POSIX bc"
complete -c bc -s q -l quiet -d "Do not print the GNU welcome"
complete -c bc -s v -l version -d "Display version and exit"
complete -c bc -s h -l help -d "Display help and exit"

View file

@ -0,0 +1,2 @@
complete -y btdownloadheadless.py

View file

@ -0,0 +1,34 @@
# Bittorrent commands
for i in btdownloadcurses.py btdownloadheadless.py;
complete -c $i -l max_uploads -x -d "Maximum uploads at once"
complete -c $i -l keepalive_interval -x -d "Number of seconds between keepalives"
complete -c $i -l download_slice_size -x -d "Bytes per request"
complete -c $i -l request_backlog -x -d "Requests per pipe"
complete -c $i -l max_message_length -x -d "Maximum length prefix encoding"
complete -c $i -l ip -d "IP to report to the tracker" -x -a "(__fish_print_addresses)"
complete -c $i -l minport -d "Minimum port to listen to"
complete -c $i -l maxport -d "Maximum port to listen to"
complete -c $i -l responsefile -r -d "File for server response"
complete -c $i -l url -x -d "URL to get file from"
complete -c $i -l saveas -r -d "Local file target"
complete -c $i -l timeout -x -d "Time to close inactive socket"
complete -c $i -l timeout_check_interval -x -d "Time between checking timeouts"
complete -c $i -l max_slice_length -x -d "Maximum outgoing slice length"
complete -c $i -l max_rate_period -x -d "Maximum time to guess rate"
complete -c $i -l bind -x -d "IP to bind to locally" -a "(__fish_print_addresses)"
complete -c $i -l upload_rate_fudge -x -d "time equivalent of writing to kernel-level TCP buffer"
complete -c $i -l display_interval -x -d "Time between screen updates"
complete -c $i -l rerequest_interval -x -d "Time to wait between requesting more peers"
complete -c $i -l min_peers -x -d "Minimum number of peers to not do requesting"
complete -c $i -l http_timeout -x -d "Number of seconds before assuming http timeout"
complete -c $i -l max_initiate -x -d "Number of peers at which to stop initiating new connections"
complete -c $i -l max_allow_in -x -d "Maximum number of connections to allow"
complete -c $i -l check_hashes -x -d "Whether to check hashes on disk"
complete -c $i -l max_upload_rate -x -d "Maximum kB/s to upload at"
complete -c $i -l snub_time -x -d "Seconds to wait for data to come in before assuming choking"
complete -c $i -l spew -x -d "Whether to display diagnostic info"
complete -c $i -l rarest_first_cutoff -x -d "Number of downloads at which to switch from random to rarest first"
complete -c $i -l min_uploads -x -d "Number of uploads to fill out to with optimistic unchokes"
complete -c $i -l report_hash_failiures -x -d "Whether to inform the user that hash failures occur"
end;

View file

@ -0,0 +1,15 @@
complete -c bunzip2 -x -a "(
__fish_complete_suffix (commandline -ct) .bz 'Compressed file'
__fish_complete_suffix (commandline -ct) .bz2 'Compressed file'
__fish_complete_suffix (commandline -ct) .tbz 'Compressed archive'
__fish_complete_suffix (commandline -ct) .tbz2 'Compressed archive'
)
"
complete -c bunzip2 -s c -l stdout -d "Decompress to stdout"
complete -c bunzip2 -s f -l force -d "Overwrite"
complete -c bunzip2 -s k -l keep -d "Do not overwrite"
complete -c bunzip2 -s s -l small -d "Reduce memory usage"
complete -c bunzip2 -s v -l verbose -d "Print compression ratios"
complete -c bunzip2 -s L -l license -d "Print license"
complete -c bunzip2 -s V -l version -d "Print version"

View file

@ -0,0 +1,8 @@
complete -c bzcat -x -a "(
__fish_complete_suffix (commandline -ct) .bz 'Compressed file'
__fish_complete_suffix (commandline -ct) .bz2 'Compressed file'
__fish_complete_suffix (commandline -ct) .tbz 'Compressed archive'
__fish_complete_suffix (commandline -ct) .tbz2 'Compressed archive'
)
"
complete -c bzcat -s s -l small -d "Reduce memory usage"

View file

@ -0,0 +1,19 @@
complete -c bzip2 -s c -l stdout -d "Compress to stdout"
complete -c bzip2 -s d -l decompress -x -a "(
__fish_complete_suffix (commandline -ct) .bz 'Compressed file'
__fish_complete_suffix (commandline -ct) .bz2 'Compressed file'
__fish_complete_suffix (commandline -ct) .tbz 'Compressed archive'
__fish_complete_suffix (commandline -ct) .tbz2 'Compressed archive'
)
"
complete -c bzip2 -s z -l compress -d "Compress file"
complete -c bzip2 -s t -l test -d "Check integrity"
complete -c bzip2 -s f -l force -d "Overwrite"
complete -c bzip2 -s k -l keep -d "Do not overwrite"
complete -c bzip2 -s s -l small -d "Reduce memory usage"
complete -c bzip2 -s q -l quiet -d "Supress errors"
complete -c bzip2 -s v -l verbose -d "Print compression ratios"
complete -c bzip2 -s L -l license -d "Print license"
complete -c bzip2 -s V -l version -d "Print version"
complete -c bzip2 -s 1 -l fast -d "Small block size"
complete -c bzip2 -s 9 -l best -d "Large block size"

View file

@ -0,0 +1,8 @@
complete -c bzip2recover -x -a "(
__fish_complete_suffix (commandline -ct) .bz 'Compressed file'
__fish_complete_suffix (commandline -ct) .bz2 'Compressed file'
__fish_complete_suffix (commandline -ct) .tbz 'Compressed archive'
__fish_complete_suffix (commandline -ct) .tbz2 'Compressed archive'
)
"

12
init/completions/cat.fish Normal file
View file

@ -0,0 +1,12 @@
complete -c cat -s A -l show-all -d "Escape all non-printing characters"
complete -c cat -s b -l number-nonblank -d "Number nonblank lines"
complete -c cat -s e -d "Escape non-printing characters except tab"
complete -c cat -s E -l show-ends -d "Display $ at end of line"
complete -c cat -s n -l number -d "Number all lines"
complete -c cat -s s -l squeeze-blank -d "Never more than single blank line"
complete -c cat -s t -d "Escape non-printing characters except newline"
complete -c cat -s T -l show-tabs -d "Escape tab"
complete -c cat -s v -d "Escape non-printing except newline and tab"
complete -c cat -l help -d "Display help and exit"
complete -c cat -l version -d "Display version and exit"

39
init/completions/cd.fish Normal file
View file

@ -0,0 +1,39 @@
function __fish_complete_cd -d "Completions for the cd command"
#
# We can't simply use __fish_complete_directory because of the CDPATH
#
set -- wd $PWD
set -- owd $OLDPWD
# Check if CDPATH is set
set -l mycdpath
if test -z $CDPATH[1]
set mycdpath .
else
set mycdpath $CDPATH
end
if echo (commandline -ct)|grep '^/' >/dev/null
# This is an absolute search path
eval printf '\%s\\tDirectory\\n' (commandline -ct)\*/
else
# This is a relative search path
# Iterate over every directory in CDPATH and check for possible completions
for i in $mycdpath
# Move to the initial directory first, in case the CDPATH directory is relative
builtin cd $wd
builtin cd $i
eval printf '"%s\tDirectory in "'$i'"\n"' (commandline -ct)\*/
end
end
builtin cd $wd
set -- OLDPWD $owd
end
complete -x -c cd -a "(__fish_complete_cd)"

View file

@ -0,0 +1,12 @@
complete -c chgrp -s c -l changes -d "Output diagnostic for changed files"
complete -c chgrp -l dereference -d "Dereferense symbolic links"
complete -c chgrp -s h -l no-dereference -d "Do not dereference symbolic links"
complete -c chgrp -l from -d "Change from owner/group"
complete -c chgrp -s f -l silent -d "Supress errors"
complete -c chgrp -l reference -d "Use same owner/group as file" -r
complete -c chgrp -s R -l recursive -d "Operate recursively"
complete -c chgrp -s v -l verbose -d "Output diagnostic for every file"
complete -c chgrp -s h -l help -d "Display help and exit"
complete -c chgrp -l version -d "Display version and exit"
complete -c chgrp -d Group -a "(__fish_complete_groups)"

View file

@ -0,0 +1,12 @@
complete -c chown -s c -l changes -d "Output diagnostic for changed files"
complete -c chown -l dereference -d "Dereferense symbolic links"
complete -c chown -s h -l no-dereference -d "Do not dereference symbolic links"
complete -c chown -l from -d "Change from owner/group"
complete -c chown -s f -l silent -d "Supress errors"
complete -c chown -l reference -d "Use same owner/group as file" -r
complete -c chown -s R -l recursive -d "Operate recursively"
complete -c chown -s v -l verbose -d "Output diagnostic for every file"
complete -c chown -s h -l help -d "Display help and exit"
complete -c chown -l version -d "Display version and exit"
complete -c chown -d "Username" -a "(__fish_print_users):"
complete -c chown -d "Username" -a "(echo (commandline -ct)|grep -o '.*:')(cat /etc/group |cut -d : -f 1)"

View file

@ -0,0 +1,12 @@
complete -c commandline -s a -l append -d "Add text to the end of commandline"
complete -c commandline -s i -l insert -d "Add text at cursor"
complete -c commandline -s r -l replace -d "Replace selected part of buffer (replace)"
complete -c commandline -s j -l current-job -d "Operate only on job under cursor"
complete -c commandline -s p -l current-process -d "Operate only on process under cursor"
complete -c commandline -s t -l current-token -d "Operate only on tokenizer token under cursor"
complete -c commandline -s b -l current-buffer -d "Operate on entire buffer (default)"
complete -c commandline -s c -l cut-at-cursor -d "Only return part of commandline before the cursor"
complete -c commandline -s f -l function -d "Inject readline functions to reader"

View file

@ -0,0 +1,13 @@
complete -c complete -s c -l command -d "Command to add completion to" -r
complete -c complete -s p -l path -d "Path to add completion to"
complete -c complete -s s -l short-option -d "Posix-style option to complete"
complete -c complete -s l -l long-option -d "GNU-style option to complete"
complete -c complete -s o -l old-option -d "Old style long option to complete"
complete -c complete -s f -l no-files -d "Do not use file completion"
complete -c complete -s r -l require-parameter -d "Require parameter"
complete -c complete -s x -l exclusive -d "Require parameter and do not use file completion"
complete -c complete -s a -l arguments -d "A list of possible arguments"
complete -c complete -s d -l description -d "Description of this completions"
complete -c complete -s u -l unauthorative -d "Option list is not complete"
complete -c complete -s e -l erase -d "Remove completion"
complete -c complete -s h -l help -d "Display help and exit"

View file

@ -0,0 +1,12 @@
complete -c configure -s h -l help -x -a "short recursive" -d "Display help and exit"
complete -c configure -s V -l version -d "Display version and exit"
complete -c configure -s q -l quiet -d "Be less verbose"
complete -c configure -l cache-file -f -d "Cache test results in specified file"
complete -c configure -s C -l config-cache -d "Cache test results in file config.cache"
complete -c configure -s n -l no-create -d "Do not create output files"
complete -c configure -l srcdir -d "Set source directory" -a "__fish_complete_directory (commandline -ct)" -x
complete -c configure -l prefix -d "Architecture-independent install directory" -a "__fish_complete_directory (commandline -ct)" -x
complete -c configure -l exec-prefix -d "Architecture-dependent install directory" -a "__fish_complete_directory (commandline -ct)" -x
complete -c configure -l build -d "configure for building on BUILD" -x
complete -c configure -l host -d "cross-compile to build programs to run on HOST" -x
complete -c configure -l target -d "configure for building compilers for TARGET" -x -u

10
init/completions/cut.fish Normal file
View file

@ -0,0 +1,10 @@
complete -c cut -s b -l bytes -x -d "Ouput byte range"
complete -c cut -s c -l characters -x -d "Output character range"
complete -c cut -s d -l delimiter -x -d "Select field delimiter"
complete -c cut -s d -l fields -x -d "Select fields"
complete -c cut -s n -d "Dont split mutibyte characters"
complete -c cut -s s -l only-delimited -d "Do not print lines without delimiter"
complete -c cut -l output-delimiter -d "Select output delimiter"
complete -c cut -l help -d "Display help and exit"
complete -c cut -l version -d "Display version and exit"

53
init/completions/cvs.fish Normal file
View file

@ -0,0 +1,53 @@
#
# I don't use CVS, so these completions are probably not all that good.
#
complete -c cvs -x -a "add" -d "Add a new file/directory to the repository"
complete -c cvs -x -a "admin" -d "Administration front end for rcs"
complete -c cvs -x -a "annotate" -d "Show last revision where each line was modified"
complete -c cvs -x -a "checkout" -d "Checkout sources for editing"
complete -c cvs -x -a "commit" -d "Check files into the repository"
complete -c cvs -x -a "diff" -d "Show differences between revisions"
complete -c cvs -x -a "edit" -d "Get ready to edit a watched file"
complete -c cvs -x -a "editors" -d "See who is editing a watched file"
complete -c cvs -x -a "export" -d "Export sources from CVS, similar to checkout"
complete -c cvs -x -a "history" -d "Show repository access history"
complete -c cvs -x -a "import" -d "Import sources into CVS, using vendor branches"
complete -c cvs -x -a "init" -d "Create a CVS repository if it doesnt exist"
complete -c cvs -x -a "kserver" -d "Kerberos server mode"
complete -c cvs -x -a "log" -d "Print out history information for files"
complete -c cvs -x -a "login" -d "Prompt for password for authenticating server"
complete -c cvs -x -a "logout" -d "Removes entry in .cvspass for remote repository"
complete -c cvs -x -a "pserver" -d "Password server mode"
complete -c cvs -x -a "rannotate" -d "Show last revision where each line of module was modified"
complete -c cvs -x -a "rdiff" -d "Create 'patch' format diffs between releases"
complete -c cvs -x -a "release" -d "Indicate that a Module is no longer in use"
complete -c cvs -x -a "remove" -d "Remove an entry from the repository"
complete -c cvs -x -a "rlog" -d "Print out history information for a module"
complete -c cvs -x -a "rtag" -d "Add a symbolic tag to a module"
complete -c cvs -x -a "server" -d "Server mode"
complete -c cvs -x -a "status" -d "Display status information on checked out files"
complete -c cvs -x -a "tag" -d "Add a symbolic tag to checked out version of files"
complete -c cvs -x -a "unedit" -d "Undo an edit command"
complete -c cvs -x -a "update" -d "Bring work tree in sync with repository"
complete -c cvs -x -a "version" -d "Show current CVS version(s)"
complete -c cvs -x -a "watch" -d "Set watches"
complete -c cvs -x -a "watchers" -d "See who is watching a file"
complete -c cvs -x -s H -d "Displays usage information for command"
complete -c cvs -x -s Q -d "Cause CVS to be really quiet"
complete -c cvs -x -s q -d "Cause CVS to be somewhat quiet"
complete -c cvs -x -s r -d "Make checked-out files read-only"
complete -c cvs -x -s w -d "Make checked-out files read-write (default)"
complete -c cvs -x -s n -d "Do not execute anything that will change the disk"
complete -c cvs -x -s t -d "Show trace of program execution -- try with -n"
complete -c cvs -x -s v -d "CVS version and copyright"
complete -c cvs -x -s T -r -d "Use 'tmpdir' for temporary files"
complete -c cvs -x -s e -r -d "Use 'editor' for editing log information"
complete -c cvs -x -s d -r -d "Overrides $CVSROOT as the root of the CVS tree"
complete -c cvs -x -s f -d "Do not use the ~/.cvsrc file"
complete -c cvs -x -s z -d "Compression level for net traffic" -x -a "1 2 3 4 5 6 7 8 9"
complete -c cvs -x -s x -d "Encrypt all net traffic"
complete -c cvs -x -s a -d "Authenticate all net traffic"
complete -c cvs -x -s s -d "Set CVS user variable" -x

View file

@ -0,0 +1,11 @@
complete -c date -s d -l date -d "Display date described by string" -x
complete -c date -s f -l file -d "Display date for each line in file" -r
complete -c date -s I -l iso-8601 -d "Output in ISO 8601 format" -x -a "date hours minutes seconds"
complete -c date -s s -l set -d "Set time" -x
complete -c date -s R -l rfc-2822 -d "Output RFC-2822 compliant date string"
complete -c date -s r -l reference -d "display the last modification time of file" -r
complete -c date -s u -l utc -d "print or set Coordinated Universal Time"
complete -c date -l universal -d "print or set Coordinated Universal Time"
complete -c date -s h -l help -d "Display help and exit"
complete -c date -s v -l version -d "Display version and exit"

18
init/completions/df.fish Normal file
View file

@ -0,0 +1,18 @@
complete -y mount
complete -c df -s a -l all -d "Include empty filesystems"
complete -c df -s B -l block-size -r -d "Block size"
complete -c df -s h -l human-readable -d "Human readable sizes"
complete -c df -s H -l si -d "Human readable sizes, powers of 1000"
complete -c df -s i -l inodes -d "List inode information"
complete -c df -s k -d "Use 1KB block size"
complete -c df -s l -l local -d "List only local filesystems"
complete -c df -l no-sync -d "Do not sync before getting usage info"
complete -c df -s P -l portability -d "Use Posix format"
complete -c df -l sync -d "Sync before getting usage info"
complete -c df -s t -l type -r -d "Filesystem type" -x -a $__fish_filesystems
complete -c df -s T -l print-type -d "Print filesystem type"
complete -c df -s x -l exclude-type -d "Excluded filesystem type" -r -x -a $__fish_filesystems
complete -c df -l help -d "Display help and exit"
complete -c df -l version -d "Display version and exit"

View file

@ -0,0 +1,26 @@
# Completions for diff
complete -c diff -s i -l ignore-case -d "Ignore case differences"
complete -c diff -l ignore-file-name-case -d "Ignore case when comparing file names"
complete -c diff -l no-ignore-file-name-case -d "Consider case when comparing file names"
complete -c diff -s E -l ignore-tab-expansion -d "Ignore changes due to tab expansion"
complete -c diff -s b -l ignore-space-change -d "Ignore changes in the amount of white space"
complete -c diff -s w -l ignore-all-space -d "Ignore all white space"
complete -c diff -s B -l ignore-blank-lines -d "Ignore changes whose lines are all blank"
complete -c diff -s I -l ignore-matching-lines -x -d "Ignore changes whose lines match the RE"
complete -c diff -s a -l text -d "Treat all files as text"
complete -c diff -s r -l recursive -d "Recursively compare subdirectories"
complete -c diff -s N -l new-file -d "Treat absent files as empty"
complete -c diff -s C -l context -x -d "Output NUM lines of copied context"
complete -c diff -s c -d "Output 3 lines of copied context"
complete -c diff -s U -l unified -x -d "Output NUM lines of unified context"
complete -c diff -s u -d "Output 3 lines of unified context"
complete -c diff -s q -l brief -d "Output only whether the files differ"
complete -c diff -l normal -d "Output a normal diff"
complete -c diff -s y -l side-by-side -d "Output in two columns"
complete -c diff -s W -l width -x -d "Output at most NUM print columns"
complete -c diff -s d -l minimal -d "Try to find a smaller set of changes"
complete -c diff -l from-file -r -d "Compare FILE1 to all operands"
complete -c diff -l to-file -r -d "Compare FILE2 to all operands"
complete -c diff -s l -l paginate -d "Pass the output through 'pr'"
complete -c diff -s v -l version -d "Output version info"
complete -c diff -l help -d "Output usage information"

20
init/completions/du.fish Normal file
View file

@ -0,0 +1,20 @@
complete -c du -s a -l all -d "Write size for all files"
complete -c du -l apparent-size -d "Print file size, not disk usage"
complete -c du -s B -l block-size -d "Block size"
complete -c du -s b -l bytes -d "Use 1B block size"
complete -c du -s c -l total -d "Produce grand total"
complete -c du -s D -l dereference-args -d "Dereference file symlinks"
complete -c du -s h -l human-readable -d "Human readable sizes"
complete -c du -s H -l si -d "Human readable sizes, powers of 1000"
complete -c du -s k -d "Use iKB block size"
complete -c du -s l -l count-links -d "Count hard links multiple times"
complete -c du -s L -l dereference -d "Dereference all symlinks"
complete -c du -s S -l separate-dirs -d "Do not include subdirectory size"
complete -c du -s s -l summarize -d "Display only a total for each argument"
complete -c du -s x -l one-file-system -d "Skip other filesystems"
complete -c du -s X -l exclude-from -r -d "Exclude files thet match pattern in file"
complete -c du -l exclude -r -d "Exclude files that match pattern"
complete -c du -l max-depth -r -d "Recursion limit"
complete -c du -l help -d "Display help and exit"
complete -c du -l version -d "Display version and exit"

View file

@ -0,0 +1,5 @@
complete -c echo -s n -d "No newline"
complete -c echo -s e -d "Use backslashe-escaped characters"
complete -c echo -s E -d "Do not use backslash escaped characters"
complete -c echo -l help -d "Display help and exit"
complete -c echo -l version -d "Display version and exit"

View file

@ -0,0 +1,10 @@
#
# These completions are uncomplete
#
complete -c emacs -s q -d "Do not load init files"
complete -c emacs -s u -d "Load users init file" -xa "(__fish_complete_users)"
complete -c emacs -s t -d "Use file as terminal" -r
complete -c emacs -s f -d "Execute Lisp function" -x
complete -c emacs -s l -d "Load Lisp code from file" -r
complete -c emacs -o nw -d "Do not use X interface"
complete -uc emacs -s d -o display -d "Create window on the specified display" -x

View file

@ -0,0 +1,5 @@
complete -c fish -s c -l "command" -d "Run fish with this command"
complete -c fish -s h -l help -d "Display help and exit"
complete -c fish -l version -d "Display version and exit"
complete -c fish -s i -l interactive -d "Run in interactive mode"
complete -c fish -s p -l profile -d "Output profiling information to specified file" -f

View file

@ -0,0 +1,4 @@
complete -c function -s d -l description -d "Set function description" -x
complete -c function -xa "(functions -n)" -d "Function"
complete -c function -xa "(builtin -n)" -d "Builtin"

Some files were not shown because too many files have changed in this diff Show more