1
0
Fork 0
mirror of synced 2024-12-22 22:48:57 -05:00

Add documentation for the extension condition

See #257
This commit is contained in:
Erik Flodin 2020-10-18 21:41:14 +02:00
parent fd047ee846
commit 63a0bc5830
No known key found for this signature in database
GPG key ID: 420A7C865EE3F85F

View file

@ -34,6 +34,7 @@ be omitted. Most attributes can be abbreviated as a single letter.
| `class`, `c` | Valid if the value matches the local.class configuration. Class must be manually set using <code>yadm&nbsp;config&nbsp;local.class&nbsp;&lt;class&gt;</code>. | | `class`, `c` | Valid if the value matches the local.class configuration. Class must be manually set using <code>yadm&nbsp;config&nbsp;local.class&nbsp;&lt;class&gt;</code>. |
| `hostname`, `h` | Valid if the value matches the short hostname. Hostname is calculated by running `hostname`, and trimming off any domain. | | `hostname`, `h` | Valid if the value matches the short hostname. Hostname is calculated by running `hostname`, and trimming off any domain. |
| `default` | Valid when no other alternate is valid. | | `default` | Valid when no other alternate is valid. |
| `extension`, `e` | A special "condition" that doesn't affect the selection process. Its purpose is instead to allow the alternate file to end with a certain extension to e.g. make editors highlight the content properly. |
<sub><sup>* <sub><sup>*
The OS for "Windows Subsystem for Linux" is reported as "WSL", even though uname identifies as "Linux". The OS for "Windows Subsystem for Linux" is reported as "WSL", even though uname identifies as "Linux".