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:
David Adam
2019-09-17 17:59:04 +08:00
parent c93c66f76b
commit 02d82dcf85
84 changed files with 313 additions and 193 deletions

View File

@@ -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