Skip to content

Commit 7607aa6

Browse files
authored
Update README.md
1 parent f4e2ac2 commit 7607aa6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ export TLDR_CACHE_ENABLED=1
8686
export TLDR_CACHE_MAX_AGE=720
8787
export TLDR_PAGES_SOURCE_LOCATION="https://raw.githubusercontent.com/tldr-pages/tldr/main/pages"
8888
export TLDR_DOWNLOAD_CACHE_LOCATION="https://tldr-pages.github.io/assets/tldr.zip"
89-
export TLDR_SHORT_OPTIONS=1
90-
export TLDR_LONG_OPTIONS=1
89+
export TLDR_OPTIONS=short
9190
```
9291

9392
### Cache
@@ -182,3 +181,7 @@ can either use the `--source` flag when using tldr or by specifying the followin
182181
- it can also point to a local directory using `file:///path/to/directory`.
183182
- `TLDR_DOWNLOAD_CACHE_LOCATION` to control where to pull a zip of all pages from.
184183
- defaults to `https://github.com/tldr-pages/tldr/releases/latest/download/tldr.zip`.
184+
185+
### Command options
186+
187+
Pages might contain `{{[*|*]}}` pattern to let the client decice whether to show shortfrom or longform versions of options. This can be configured with `TLDR_OPTIONS` and it accepts values `short`, `long` and `both`

0 commit comments

Comments
 (0)