mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 13:53:10 +00:00
Update synopsis of a few stragglers.
This commit is contained in:
parent
6e426cefbd
commit
a16fd0baa4
5 changed files with 11 additions and 27 deletions
|
@ -6,12 +6,10 @@ if - conditionally execute a command
|
||||||
Synopsis
|
Synopsis
|
||||||
--------
|
--------
|
||||||
|
|
||||||
::
|
| **if** *CONDITION*; *COMMANDS_TRUE*...;
|
||||||
|
| [**else** **if** *CONDITION2*; *COMMANDS_TRUE2*...;]
|
||||||
if CONDITION; COMMANDS_TRUE...;
|
| [**else**; *COMMANDS_FALSE*...;]
|
||||||
[else if CONDITION2; COMMANDS_TRUE2...;]
|
| **end**
|
||||||
[else; COMMANDS_FALSE...;]
|
|
||||||
end
|
|
||||||
|
|
||||||
Description
|
Description
|
||||||
-----------
|
-----------
|
||||||
|
|
|
@ -6,9 +6,7 @@ isatty - test if a file descriptor is a terminal
|
||||||
Synopsis
|
Synopsis
|
||||||
--------
|
--------
|
||||||
|
|
||||||
::
|
``isatty`` [*FILE DESCRIPTOR*]
|
||||||
|
|
||||||
isatty [FILE DESCRIPTOR]
|
|
||||||
|
|
||||||
Description
|
Description
|
||||||
-----------
|
-----------
|
||||||
|
@ -23,11 +21,7 @@ If the specified file descriptor is a terminal device, the exit status of the co
|
||||||
Examples
|
Examples
|
||||||
--------
|
--------
|
||||||
|
|
||||||
From an interactive shell, the commands below exit with a return value of zero:
|
From an interactive shell, the commands below exit with a return value of zero::
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
::
|
|
||||||
|
|
||||||
isatty
|
isatty
|
||||||
isatty stdout
|
isatty stdout
|
||||||
|
@ -35,11 +29,7 @@ From an interactive shell, the commands below exit with a return value of zero:
|
||||||
echo | isatty 1
|
echo | isatty 1
|
||||||
|
|
||||||
|
|
||||||
And these will exit non-zero:
|
And these will exit non-zero::
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
::
|
|
||||||
|
|
||||||
echo | isatty
|
echo | isatty
|
||||||
isatty 9
|
isatty 9
|
||||||
|
|
|
@ -6,9 +6,7 @@ jobs - print currently running jobs
|
||||||
Synopsis
|
Synopsis
|
||||||
--------
|
--------
|
||||||
|
|
||||||
::
|
``jobs`` [*OPTIONS*] [ *PID* | %*JOBID* ]
|
||||||
|
|
||||||
jobs [OPTIONS] [ PID | %JOBID ]
|
|
||||||
|
|
||||||
|
|
||||||
Description
|
Description
|
||||||
|
|
|
@ -6,9 +6,7 @@ math - perform mathematics calculations
|
||||||
Synopsis
|
Synopsis
|
||||||
--------
|
--------
|
||||||
|
|
||||||
::
|
``math`` [**-s** | **--scale** *N*] [**-b** | **--base** *BASE*] [--] *EXPRESSION...*
|
||||||
|
|
||||||
math [-sN | --scale=N] [-bBASE | --base=BASE] [--] EXPRESSION
|
|
||||||
|
|
||||||
|
|
||||||
Description
|
Description
|
||||||
|
|
|
@ -6,7 +6,7 @@ set_color - set the terminal color
|
||||||
Synopsis
|
Synopsis
|
||||||
--------
|
--------
|
||||||
|
|
||||||
``set_color`` [*options*] *VALUE*
|
``set_color`` [*OPTIONS*] *VALUE*
|
||||||
|
|
||||||
Description
|
Description
|
||||||
-----------
|
-----------
|
||||||
|
@ -24,7 +24,7 @@ An RGB value with three or six hex digits, such as A0FF33 or f2f can be used. ``
|
||||||
|
|
||||||
A second color may be given as a desired fallback color. e.g. ``set_color 124212 brblue`` will instruct set_color to use *brblue* if a terminal is not capable of the exact shade of grey desired. This is very useful when an 8 or 16 color terminal might otherwise not use a color.
|
A second color may be given as a desired fallback color. e.g. ``set_color 124212 brblue`` will instruct set_color to use *brblue* if a terminal is not capable of the exact shade of grey desired. This is very useful when an 8 or 16 color terminal might otherwise not use a color.
|
||||||
|
|
||||||
The following options are available:
|
The following *OPTIONS* are available:
|
||||||
|
|
||||||
- ``-b``, ``--background`` *COLOR* sets the background color.
|
- ``-b``, ``--background`` *COLOR* sets the background color.
|
||||||
- ``-c``, ``--print-colors`` prints a list of the 16 named colors.
|
- ``-c``, ``--print-colors`` prints a list of the 16 named colors.
|
||||||
|
|
Loading…
Reference in a new issue