mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-23 10:51:14 -03:00
docs: update all command synopsis formatting
Adds synopses for those commands missing them. Moves all synopsis sections to code blocks. This improves the appearance, although highlighting as fish code may not be the ideal appearance.
This commit is contained in:
@@ -6,12 +6,14 @@ abbr - manage fish abbreviations
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
abbr --add [SCOPE] WORD EXPANSION
|
||||
abbr --erase word
|
||||
abbr --rename [SCOPE] OLD_WORD NEW_WORD
|
||||
abbr --show
|
||||
abbr --list
|
||||
abbr --query WORD...
|
||||
::
|
||||
|
||||
abbr --add [SCOPE] WORD EXPANSION
|
||||
abbr --erase word
|
||||
abbr --rename [SCOPE] OLD_WORD NEW_WORD
|
||||
abbr --show
|
||||
abbr --list
|
||||
abbr --query WORD...
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -6,9 +6,11 @@ alias - create a function
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
alias
|
||||
alias [OPTIONS] NAME DEFINITION
|
||||
alias [OPTIONS] NAME=DEFINITION
|
||||
::
|
||||
|
||||
alias
|
||||
alias [OPTIONS] NAME DEFINITION
|
||||
alias [OPTIONS] NAME=DEFINITION
|
||||
|
||||
|
||||
Description
|
||||
|
||||
@@ -6,7 +6,9 @@ and - conditionally execute a command
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
COMMAND1; and COMMAND2
|
||||
::
|
||||
|
||||
COMMAND1; and COMMAND2
|
||||
|
||||
|
||||
Description
|
||||
|
||||
@@ -6,7 +6,9 @@ argparse - parse options passed to a fish script or function
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
argparse [OPTIONS] OPTION_SPEC... -- [ARG...]
|
||||
::
|
||||
|
||||
argparse [OPTIONS] OPTION_SPEC... -- [ARG...]
|
||||
|
||||
|
||||
Description
|
||||
|
||||
@@ -6,7 +6,9 @@ begin - start a new block of code
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
begin; [COMMANDS...;] end
|
||||
::
|
||||
|
||||
begin; [COMMANDS...;] end
|
||||
|
||||
|
||||
Description
|
||||
|
||||
@@ -6,8 +6,9 @@ bg - send jobs to background
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
bg [PID...]
|
||||
::
|
||||
|
||||
bg [PID...]
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -6,18 +6,14 @@ bind - handle fish key bindings
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
``bind [(-M | --mode) MODE] [(-m | --sets-mode) NEW_MODE] [--preset | --user] [(-s | --silent)] [(-k | --key)] SEQUENCE COMMAND [COMMAND...]``
|
||||
|
||||
``bind [(-M | --mode) MODE] [(-k | --key)] [--preset] [--user] SEQUENCE``
|
||||
|
||||
``bind (-K | --key-names) [(-a | --all)] [--preset] [--user]``
|
||||
|
||||
``bind (-f | --function-names)``
|
||||
|
||||
``bind (-L | --list-modes)``
|
||||
|
||||
``bind (-e | --erase) [(-M | --mode) MODE] [--preset] [--user] (-a | --all | [(-k | --key)] SEQUENCE [SEQUENCE...])``
|
||||
::
|
||||
|
||||
bind [(-M | --mode) MODE] [(-m | --sets-mode) NEW_MODE] [--preset | --user] [(-s | --silent)] [(-k | --key)] SEQUENCE COMMAND [COMMAND...]
|
||||
bind [(-M | --mode) MODE] [(-k | --key)] [--preset] [--user] SEQUENCE
|
||||
bind (-K | --key-names) [(-a | --all)] [--preset] [--user]
|
||||
bind (-f | --function-names)
|
||||
bind (-L | --list-modes)
|
||||
bind (-e | --erase) [(-M | --mode) MODE] [--preset] [--user] (-a | --all | [(-k | --key)] SEQUENCE [SEQUENCE...])
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -6,7 +6,9 @@ block - temporarily block delivery of events
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
block [OPTIONS...]
|
||||
::
|
||||
|
||||
block [OPTIONS...]
|
||||
|
||||
|
||||
Description
|
||||
|
||||
@@ -6,7 +6,9 @@ break - stop the current inner loop
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
LOOP_CONSTRUCT; [COMMANDS...] break; [COMMANDS...] end
|
||||
::
|
||||
|
||||
LOOP_CONSTRUCT; [COMMANDS...] break; [COMMANDS...] end
|
||||
|
||||
|
||||
Description
|
||||
|
||||
@@ -6,7 +6,9 @@ breakpoint - Launch debug mode
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
breakpoint
|
||||
::
|
||||
|
||||
breakpoint
|
||||
|
||||
|
||||
Description
|
||||
|
||||
@@ -6,9 +6,10 @@ builtin - run a builtin command
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
builtin [OPTIONS...] BUILTINNAME
|
||||
builtin --query BUILTINNAMES...
|
||||
::
|
||||
|
||||
builtin [OPTIONS...] BUILTINNAME
|
||||
builtin --query BUILTINNAMES...
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -6,8 +6,9 @@ case - conditionally execute a block of commands
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
switch VALUE; [case [WILDCARD...]; [COMMANDS...]; ...] end
|
||||
::
|
||||
|
||||
switch VALUE; [case [WILDCARD...]; [COMMANDS...]; ...] end
|
||||
|
||||
Description
|
||||
-----------
|
||||
@@ -20,14 +21,11 @@ Note that fish does not fall through on case statements. Only the first matching
|
||||
|
||||
Note that command substitutions in a case statement will be evaluated even if its body is not taken. All substitutions, including command substitutions, must be performed before the value can be compared against the parameter.
|
||||
|
||||
|
||||
Example
|
||||
-------
|
||||
|
||||
Say \$animal contains the name of an animal. Then this code would classify it:
|
||||
|
||||
|
||||
|
||||
::
|
||||
|
||||
switch $animal
|
||||
|
||||
@@ -6,8 +6,9 @@ cd - change directory
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
cd [DIRECTORY]
|
||||
::
|
||||
|
||||
cd [DIRECTORY]
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -3,11 +3,12 @@
|
||||
cdh - change to a recently visited directory
|
||||
============================================
|
||||
|
||||
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
cdh [ directory ]
|
||||
::
|
||||
|
||||
cdh [ directory ]
|
||||
|
||||
|
||||
Description
|
||||
|
||||
@@ -6,8 +6,9 @@ command - run a program
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
command [OPTIONS] COMMANDNAME [ARGS...]
|
||||
::
|
||||
|
||||
command [OPTIONS] COMMANDNAME [ARGS...]
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -6,8 +6,9 @@ commandline - set or get the current command line buffer
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
commandline [OPTIONS] [CMD]
|
||||
::
|
||||
|
||||
commandline [OPTIONS] [CMD]
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -24,7 +24,6 @@ Synopsis
|
||||
[( -d | --description ) DESCRIPTION]
|
||||
complete ( -C[STRING] | --do-complete[=STRING] )
|
||||
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
|
||||
@@ -6,8 +6,9 @@ contains - test if a word is present in a list
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
contains [OPTIONS] KEY [VALUES...]
|
||||
::
|
||||
|
||||
contains [OPTIONS] KEY [VALUES...]
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -6,8 +6,9 @@ continue - skip the remainder of the current iteration of the current inner loop
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
LOOP_CONSTRUCT; [COMMANDS...;] continue; [COMMANDS...;] end
|
||||
::
|
||||
|
||||
LOOP_CONSTRUCT; [COMMANDS...;] continue; [COMMANDS...;] end
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -6,10 +6,11 @@ count - count the number of elements of a list
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
count $VARIABLE
|
||||
COMMAND | count
|
||||
count < FILE
|
||||
::
|
||||
|
||||
count $VARIABLE
|
||||
COMMAND | count
|
||||
count < FILE
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -6,8 +6,9 @@ dirh - print directory history
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
dirh
|
||||
::
|
||||
|
||||
dirh
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -6,9 +6,10 @@ dirs - print directory stack
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
dirs
|
||||
dirs -c
|
||||
::
|
||||
|
||||
dirs
|
||||
dirs -c
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -6,8 +6,9 @@ disown - remove a process from the list of jobs
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
``disown [ PID ... ]``
|
||||
::
|
||||
|
||||
disown [ PID ... ]
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -6,8 +6,9 @@ echo - display a line of text
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
echo [OPTIONS] [STRING]
|
||||
::
|
||||
|
||||
echo [OPTIONS] [STRING]
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -6,8 +6,9 @@ else - execute command if a condition is not met
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
if CONDITION; COMMANDS_TRUE...; [else; COMMANDS_FALSE...;] end
|
||||
::
|
||||
|
||||
if CONDITION; COMMANDS_TRUE...; [else; COMMANDS_FALSE...;] end
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -6,8 +6,9 @@ emit - Emit a generic event
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
emit EVENT_NAME [ARGUMENTS...]
|
||||
::
|
||||
|
||||
emit EVENT_NAME [ARGUMENTS...]
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -6,12 +6,13 @@ end - end a block of commands.
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
begin; [COMMANDS...] end
|
||||
if CONDITION; COMMANDS_TRUE...; [else; COMMANDS_FALSE...;] end
|
||||
while CONDITION; COMMANDS...; end
|
||||
for VARNAME in [VALUES...]; COMMANDS...; end
|
||||
switch VALUE; [case [WILDCARD...]; [COMMANDS...]; ...] end
|
||||
::
|
||||
|
||||
begin; [COMMANDS...] end
|
||||
if CONDITION; COMMANDS_TRUE...; [else; COMMANDS_FALSE...;] end
|
||||
while CONDITION; COMMANDS...; end
|
||||
for VARNAME in [VALUES...]; COMMANDS...; end
|
||||
switch VALUE; [case [WILDCARD...]; [COMMANDS...]; ...] end
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -6,7 +6,9 @@ eval - evaluate the specified commands
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
eval [COMMANDS...]
|
||||
::
|
||||
|
||||
eval [COMMANDS...]
|
||||
|
||||
|
||||
Description
|
||||
|
||||
@@ -6,8 +6,9 @@ exec - execute command in current process
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
exec COMMAND [OPTIONS...]
|
||||
::
|
||||
|
||||
exec COMMAND [OPTIONS...]
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -6,8 +6,9 @@ exit - exit the shell
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
exit [STATUS]
|
||||
::
|
||||
|
||||
exit [STATUS]
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -6,8 +6,9 @@ false - return an unsuccessful result
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
false
|
||||
::
|
||||
|
||||
false
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -6,8 +6,9 @@ fg - bring job to foreground
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
fg [PID]
|
||||
::
|
||||
|
||||
fg [PID]
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -6,8 +6,9 @@ fish - the friendly interactive shell
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
fish [OPTIONS] [-c command] [FILE [ARGUMENTS...]]
|
||||
::
|
||||
|
||||
fish [OPTIONS] [-c command] [FILE [ARGUMENTS...]]
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -3,6 +3,12 @@
|
||||
fish_config - start the web-based configuration interface
|
||||
=========================================================
|
||||
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
::
|
||||
|
||||
fish_config [TAB]
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -3,6 +3,15 @@
|
||||
fish_git_prompt - output git information for use in a prompt
|
||||
============================================================
|
||||
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
::
|
||||
|
||||
function fish_prompt
|
||||
echo -n (pwd)(fish_git_prompt) '$ '
|
||||
end
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
|
||||
@@ -3,6 +3,15 @@
|
||||
fish_hg_prompt - output Mercurial information for use in a prompt
|
||||
=================================================================
|
||||
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
::
|
||||
|
||||
function fish_prompt
|
||||
echo -n (pwd)(fish_hg_prompt) '$ '
|
||||
end
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
|
||||
@@ -6,7 +6,9 @@ fish_indent - indenter and prettifier
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
fish_indent [OPTIONS] [FILE...]
|
||||
::
|
||||
|
||||
fish_indent [OPTIONS] [FILE...]
|
||||
|
||||
|
||||
Description
|
||||
|
||||
@@ -6,8 +6,9 @@ fish_key_reader - explore what characters keyboard keys send
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
fish_key_reader [OPTIONS]
|
||||
::
|
||||
|
||||
fish_key_reader [OPTIONS]
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -3,13 +3,21 @@
|
||||
fish_mode_prompt - define the appearance of the mode indicator
|
||||
==============================================================
|
||||
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
::
|
||||
|
||||
function fish_mode_prompt
|
||||
echo -n "$fish_bind_mode "
|
||||
end
|
||||
|
||||
The fish_mode_prompt function will output the mode indicator for use in vi-mode.
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
The ``fish_mode_prompt`` function outputs the mode indicator for use in vi-mode.
|
||||
|
||||
The default ``fish_mode_prompt`` function will output indicators about the current Vi editor mode displayed to the left of the regular prompt. Define your own function to customize the appearance of the mode indicator. You can also define an empty ``fish_mode_prompt`` function to remove the Vi mode indicators. The ``$fish_bind_mode variable`` can be used to determine the current mode. It
|
||||
will be one of ``default``, ``insert``, ``replace_one``, or ``visual``.
|
||||
|
||||
|
||||
@@ -3,6 +3,15 @@
|
||||
fish_svn_prompt - output Subversion information for use in a prompt
|
||||
===================================================================
|
||||
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
::
|
||||
|
||||
function fish_prompt
|
||||
echo -n (pwd)(fish_svn_prompt) '$ '
|
||||
end
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
|
||||
@@ -3,6 +3,12 @@
|
||||
fish_update_completions - Update completions using manual pages
|
||||
===============================================================
|
||||
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
::
|
||||
|
||||
fish_update_completions
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -3,6 +3,15 @@
|
||||
fish_vcs_prompt - output version control system information for use in a prompt
|
||||
===============================================================================
|
||||
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
::
|
||||
|
||||
function fish_prompt
|
||||
echo -n (pwd)(fish_vcs_prompt) '$ '
|
||||
end
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
|
||||
@@ -6,8 +6,9 @@ for - perform a set of commands multiple times.
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
for VARNAME in [VALUES...]; COMMANDS...; end
|
||||
::
|
||||
|
||||
for VARNAME in [VALUES...]; COMMANDS...; end
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -6,8 +6,9 @@ funced - edit a function interactively
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
funced [OPTIONS] NAME
|
||||
::
|
||||
|
||||
funced [OPTIONS] NAME
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -6,7 +6,9 @@ funcsave - save the definition of a function to the user's autoload directory
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
funcsave FUNCTION_NAME
|
||||
::
|
||||
|
||||
funcsave FUNCTION_NAME
|
||||
|
||||
|
||||
Description
|
||||
|
||||
@@ -6,7 +6,9 @@ function - create a function
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
function NAME [OPTIONS]; BODY; end
|
||||
::
|
||||
|
||||
function NAME [OPTIONS]; BODY; end
|
||||
|
||||
|
||||
Description
|
||||
|
||||
@@ -6,12 +6,13 @@ functions - print or erase functions
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
functions [ -a | --all ] [ -n | --names ]
|
||||
functions [ -D | --details ] [ -v ] FUNCTION
|
||||
functions -c OLDNAME NEWNAME
|
||||
functions -d DESCRIPTION FUNCTION
|
||||
functions [ -e | -q ] FUNCTIONS...
|
||||
::
|
||||
|
||||
functions [ -a | --all ] [ -n | --names ]
|
||||
functions [ -D | --details ] [ -v ] FUNCTION
|
||||
functions -c OLDNAME NEWNAME
|
||||
functions -d DESCRIPTION FUNCTION
|
||||
functions [ -e | -q ] FUNCTIONS...
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -6,8 +6,9 @@ help - display fish documentation
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
help [SECTION]
|
||||
::
|
||||
|
||||
help [SECTION]
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -6,13 +6,14 @@ history - Show and manipulate command history
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
history search [ --show-time ] [ --case-sensitive ] [ --exact | --prefix | --contains ] [ --max=n ] [ --null ] [ -R | --reverse ] [ "search string"... ]
|
||||
history delete [ --show-time ] [ --case-sensitive ] [ --exact | --prefix | --contains ] "search string"...
|
||||
history merge
|
||||
history save
|
||||
history clear
|
||||
history ( -h | --help )
|
||||
::
|
||||
|
||||
history search [ --show-time ] [ --case-sensitive ] [ --exact | --prefix | --contains ] [ --max=n ] [ --null ] [ -R | --reverse ] [ "search string"... ]
|
||||
history delete [ --show-time ] [ --case-sensitive ] [ --exact | --prefix | --contains ] "search string"...
|
||||
history merge
|
||||
history save
|
||||
history clear
|
||||
history ( -h | --help )
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -6,11 +6,12 @@ if - conditionally execute a command
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
if CONDITION; COMMANDS_TRUE...;
|
||||
[else if CONDITION2; COMMANDS_TRUE2...;]
|
||||
[else; COMMANDS_FALSE...;]
|
||||
end
|
||||
::
|
||||
|
||||
if CONDITION; COMMANDS_TRUE...;
|
||||
[else if CONDITION2; COMMANDS_TRUE2...;]
|
||||
[else; COMMANDS_FALSE...;]
|
||||
end
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -6,8 +6,9 @@ isatty - test if a file descriptor is a tty.
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
isatty [FILE DESCRIPTOR]
|
||||
::
|
||||
|
||||
isatty [FILE DESCRIPTOR]
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -6,7 +6,9 @@ jobs - print currently running jobs
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
jobs [OPTIONS] [PID]
|
||||
::
|
||||
|
||||
jobs [OPTIONS] [PID]
|
||||
|
||||
|
||||
Description
|
||||
|
||||
@@ -6,7 +6,9 @@ math - Perform mathematics calculations
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
math [-sN | --scale=N] [--] EXPRESSION
|
||||
::
|
||||
|
||||
math [-sN | --scale=N] [--] EXPRESSION
|
||||
|
||||
|
||||
Description
|
||||
|
||||
@@ -6,7 +6,9 @@ nextd - move forward through directory history
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
nextd [ -l | --list ] [POS]
|
||||
::
|
||||
|
||||
nextd [ -l | --list ] [POS]
|
||||
|
||||
|
||||
Description
|
||||
|
||||
@@ -6,7 +6,9 @@ not - negate the exit status of a job
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
not COMMAND [OPTIONS...]
|
||||
::
|
||||
|
||||
not COMMAND [OPTIONS...]
|
||||
|
||||
|
||||
Description
|
||||
|
||||
@@ -6,7 +6,9 @@ open - open file in its default application
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
open FILES...
|
||||
::
|
||||
|
||||
open FILES...
|
||||
|
||||
|
||||
Description
|
||||
|
||||
@@ -6,8 +6,9 @@ or - conditionally execute a command
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
COMMAND1; or COMMAND2
|
||||
::
|
||||
|
||||
COMMAND1; or COMMAND2
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -6,7 +6,9 @@ popd - move through directory stack
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
popd
|
||||
::
|
||||
|
||||
popd
|
||||
|
||||
|
||||
Description
|
||||
|
||||
@@ -6,8 +6,9 @@ prevd - move backward through directory history
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
prevd [ -l | --list ] [POS]
|
||||
::
|
||||
|
||||
prevd [ -l | --list ] [POS]
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -6,8 +6,9 @@ printf - display text according to a format string
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
printf format [argument...]
|
||||
::
|
||||
|
||||
printf FORMAT [ARGUMENT ...]
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -6,8 +6,11 @@ prompt_pwd - Print pwd suitable for prompt
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
prompt_pwd
|
||||
::
|
||||
|
||||
function fish_prompt
|
||||
echo -n (prompt_pwd) '$ '
|
||||
end
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -6,8 +6,9 @@ psub - perform process substitution
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
COMMAND1 ( COMMAND2 | psub [-F | --fifo] [-f | --file] [-s SUFFIX])
|
||||
::
|
||||
|
||||
COMMAND1 ( COMMAND2 | psub [-F | --fifo] [-f | --file] [-s SUFFIX])
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -6,8 +6,9 @@ pushd - push directory to directory stack
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
pushd [DIRECTORY]
|
||||
::
|
||||
|
||||
pushd [DIRECTORY]
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -6,7 +6,9 @@ pwd - output the current working directory
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
pwd
|
||||
::
|
||||
|
||||
pwd
|
||||
|
||||
|
||||
Description
|
||||
|
||||
@@ -6,12 +6,13 @@ random - generate random number
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
random
|
||||
random SEED
|
||||
random START END
|
||||
random START STEP END
|
||||
random choice [ITEMS...]
|
||||
::
|
||||
|
||||
random
|
||||
random SEED
|
||||
random START END
|
||||
random START STEP END
|
||||
random choice [ITEMS...]
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -6,8 +6,9 @@ read - read line of input into variables
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
read [OPTIONS] [VARIABLE ...]
|
||||
::
|
||||
|
||||
read [OPTIONS] [VARIABLE ...]
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -6,8 +6,9 @@ realpath - Convert a path to an absolute path without symlinks
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
realpath path
|
||||
::
|
||||
|
||||
realpath PATH
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -6,8 +6,9 @@ return - stop the current inner function
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
function NAME; [COMMANDS...;] return [STATUS]; [COMMANDS...;] end
|
||||
::
|
||||
|
||||
function NAME; [COMMANDS...;] return [STATUS]; [COMMANDS...;] end
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -6,14 +6,15 @@ set - display and change shell variables.
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
set [SCOPE_OPTIONS]
|
||||
set [OPTIONS] VARIABLE_NAME VALUES...
|
||||
set [OPTIONS] VARIABLE_NAME[INDICES]... VALUES...
|
||||
set ( -q | --query ) [SCOPE_OPTIONS] VARIABLE_NAMES...
|
||||
set ( -e | --erase ) [SCOPE_OPTIONS] VARIABLE_NAME
|
||||
set ( -e | --erase ) [SCOPE_OPTIONS] VARIABLE_NAME[INDICES]...
|
||||
set ( -S | --show ) [VARIABLE_NAME]...
|
||||
::
|
||||
|
||||
set [SCOPE_OPTIONS]
|
||||
set [OPTIONS] VARIABLE_NAME VALUES...
|
||||
set [OPTIONS] VARIABLE_NAME[INDICES]... VALUES...
|
||||
set ( -q | --query ) [SCOPE_OPTIONS] VARIABLE_NAMES...
|
||||
set ( -e | --erase ) [SCOPE_OPTIONS] VARIABLE_NAME
|
||||
set ( -e | --erase ) [SCOPE_OPTIONS] VARIABLE_NAME[INDICES]...
|
||||
set ( -S | --show ) [VARIABLE_NAME]...
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -6,8 +6,9 @@ set_color - set the terminal color
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
set_color [OPTIONS] VALUE
|
||||
::
|
||||
|
||||
set_color [OPTIONS] VALUE
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -6,8 +6,10 @@ source - evaluate contents of file.
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
source FILENAME [ARGUMENTS...]
|
||||
somecommand | source
|
||||
::
|
||||
|
||||
source FILENAME [ARGUMENTS...]
|
||||
somecommand | source
|
||||
|
||||
|
||||
Description
|
||||
|
||||
@@ -6,42 +6,26 @@ status - query fish runtime information
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
``status``
|
||||
|
||||
``status is-login``
|
||||
|
||||
``status is-interactive``
|
||||
|
||||
``status is-block``
|
||||
|
||||
``status is-breakpoint``
|
||||
|
||||
``status is-command-substitution``
|
||||
|
||||
``status is-no-job-control``
|
||||
|
||||
``status is-full-job-control``
|
||||
|
||||
``status is-interactive-job-control``
|
||||
|
||||
``status current-command``
|
||||
|
||||
``status filename``
|
||||
|
||||
``status fish-path``
|
||||
|
||||
``status function``
|
||||
|
||||
``status line-number``
|
||||
|
||||
``status stack-trace``
|
||||
|
||||
``status job-control CONTROL-TYPE``
|
||||
|
||||
``status features``
|
||||
|
||||
``status test-feature FEATURE``
|
||||
::
|
||||
|
||||
status
|
||||
status is-login
|
||||
status is-interactive
|
||||
status is-block
|
||||
status is-breakpoint
|
||||
status is-command-substitution
|
||||
status is-no-job-control
|
||||
status is-full-job-control
|
||||
status is-interactive-job-control
|
||||
status current-command
|
||||
status filename
|
||||
status fish-path
|
||||
status function
|
||||
status line-number
|
||||
status stack-trace
|
||||
status job-control CONTROL-TYPE
|
||||
status features
|
||||
status test-feature FEATURE
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -6,36 +6,23 @@ string - manipulate strings
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
``string collect [(-N | --no-trim-newlines)] [STRING...]``
|
||||
|
||||
``string escape [(-n | --no-quoted)] [--style=xxx] [STRING...]``
|
||||
|
||||
``string join [(-q | --quiet)] SEP [STRING...]``
|
||||
|
||||
``string join0 [(-q | --quiet)] [STRING...]``
|
||||
|
||||
``string length [(-q | --quiet)] [STRING...]``
|
||||
|
||||
``string lower [(-q | --quiet)] [STRING...]``
|
||||
|
||||
``string match [(-a | --all)] [(-e | --entire)] [(-i | --ignore-case)] [(-r | --regex)] [(-n | --index)] [(-q | --quiet)] [(-v | --invert)] PATTERN [STRING...]``
|
||||
|
||||
``string repeat [(-n | --count) COUNT] [(-m | --max) MAX] [(-N | --no-newline)] [(-q | --quiet)] [STRING...]``
|
||||
|
||||
``string replace [(-a | --all)] [(-f | --filter)] [(-i | --ignore-case)] [(-r | --regex)] [(-q | --quiet)] PATTERN REPLACEMENT [STRING...]``
|
||||
|
||||
``string split [(-m | --max) MAX] [(-n | --no-empty)] [(-q | --quiet)] [(-r | --right)] SEP [STRING...]``
|
||||
|
||||
``string split0 [(-m | --max) MAX] [(-n | --no-empty)] [(-q | --quiet)] [(-r | --right)] [STRING...]``
|
||||
|
||||
``string sub [(-s | --start) START] [(-l | --length) LENGTH] [(-q | --quiet)] [STRING...]``
|
||||
|
||||
``string trim [(-l | --left)] [(-r | --right)] [(-c | --chars CHARS)] [(-q | --quiet)] [STRING...]``
|
||||
|
||||
``string unescape [--style=xxx] [STRING...]``
|
||||
|
||||
``string upper [(-q | --quiet)] [STRING...]``
|
||||
::
|
||||
|
||||
string collect [(-N | --no-trim-newlines)] [STRING...]
|
||||
string escape [(-n | --no-quoted)] [--style=xxx] [STRING...]
|
||||
string join [(-q | --quiet)] SEP [STRING...]
|
||||
string join0 [(-q | --quiet)] [STRING...]
|
||||
string length [(-q | --quiet)] [STRING...]
|
||||
string lower [(-q | --quiet)] [STRING...]
|
||||
string match [(-a | --all)] [(-e | --entire)] [(-i | --ignore-case)] [(-r | --regex)] [(-n | --index)] [(-q | --quiet)] [(-v | --invert)] PATTERN [STRING...]
|
||||
string repeat [(-n | --count) COUNT] [(-m | --max) MAX] [(-N | --no-newline)] [(-q | --quiet)] [STRING...]
|
||||
string replace [(-a | --all)] [(-f | --filter)] [(-i | --ignore-case)] [(-r | --regex)] [(-q | --quiet)] PATTERN REPLACEMENT [STRING...]
|
||||
string split [(-m | --max) MAX] [(-n | --no-empty)] [(-q | --quiet)] [(-r | --right)] SEP [STRING...]
|
||||
string split0 [(-m | --max) MAX] [(-n | --no-empty)] [(-q | --quiet)] [(-r | --right)] [STRING...]
|
||||
string sub [(-s | --start) START] [(-l | --length) LENGTH] [(-q | --quiet)] [STRING...]
|
||||
string trim [(-l | --left)] [(-r | --right)] [(-c | --chars CHARS)] [(-q | --quiet)] [STRING...]
|
||||
string unescape [--style=xxx] [STRING...]
|
||||
string upper [(-q | --quiet)] [STRING...]
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -6,8 +6,9 @@ suspend - suspend the current shell
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
suspend [--force]
|
||||
::
|
||||
|
||||
suspend [--force]
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -6,8 +6,9 @@ switch - conditionally execute a block of commands
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
switch VALUE; [case [WILDCARD...]; [COMMANDS...]; ...] end
|
||||
::
|
||||
|
||||
switch VALUE; [case [WILDCARD...]; [COMMANDS...]; ...] end
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -6,8 +6,10 @@ test - perform tests on files and text
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
test [EXPRESSION]
|
||||
[ [EXPRESSION] ]
|
||||
::
|
||||
|
||||
test [EXPRESSION]
|
||||
[ [EXPRESSION] ]
|
||||
|
||||
|
||||
Description
|
||||
|
||||
@@ -6,8 +6,9 @@ trap - perform an action when the shell receives a signal
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
trap [OPTIONS] [[ARG] REASON ... ]
|
||||
::
|
||||
|
||||
trap [OPTIONS] [[ARG] REASON ... ]
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -6,7 +6,9 @@ true - return a successful result
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
true
|
||||
::
|
||||
|
||||
true
|
||||
|
||||
|
||||
Description
|
||||
|
||||
@@ -6,7 +6,9 @@ type - indicate how a command would be interpreted
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
type [OPTIONS] NAME [NAME ...]
|
||||
::
|
||||
|
||||
type [OPTIONS] NAME [NAME ...]
|
||||
|
||||
|
||||
Description
|
||||
|
||||
@@ -6,7 +6,9 @@ ulimit - set or get resource usage limits
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
ulimit [OPTIONS] [LIMIT]
|
||||
::
|
||||
|
||||
ulimit [OPTIONS] [LIMIT]
|
||||
|
||||
|
||||
Description
|
||||
|
||||
@@ -6,7 +6,9 @@ umask - set or get the file creation mode mask
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
umask [OPTIONS] [MASK]
|
||||
::
|
||||
|
||||
umask [OPTIONS] [MASK]
|
||||
|
||||
|
||||
Description
|
||||
|
||||
@@ -6,8 +6,9 @@ vared - interactively edit the value of an environment variable
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
vared VARIABLE_NAME
|
||||
::
|
||||
|
||||
vared VARIABLE_NAME
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -6,8 +6,9 @@ wait - wait for jobs to complete
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
wait [-n | --any] [PID | PROCESS_NAME] ...
|
||||
::
|
||||
|
||||
wait [-n | --any] [PID | PROCESS_NAME] ...
|
||||
|
||||
Description
|
||||
-----------
|
||||
|
||||
@@ -6,7 +6,9 @@ while - perform a command multiple times
|
||||
Synopsis
|
||||
--------
|
||||
|
||||
while CONDITION; COMMANDS...; end
|
||||
::
|
||||
|
||||
while CONDITION; COMMANDS...; end
|
||||
|
||||
|
||||
Description
|
||||
|
||||
Reference in New Issue
Block a user