You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cache is downloaded from `TLDR_DOWNLOAD_CACHE_LOCATION` (defaults to the one described in [the client specification](https://github.com/tldr-pages/tldr/blob/main/CLIENT-SPECIFICATION.md#caching)), unzipped and extracted into the [local cache directory](#cache-location). Pages are loaded directly from `TLDR_PAGES_SOURCE_LOCATION` if `tldr <command>` is used.
84
93
85
-
*`TLDR_CACHE_ENABLED` (default is `1`):
86
-
* If set to `1`, the client will first try to load from cache, and fall back to fetching from the internet if the cache doesn't exist or is too old.
87
-
* If set to `0`, the client will fetch from the internet, and fall back to the cache if the page cannot be fetched from the internet.
88
-
*`TLDR_CACHE_MAX_AGE` (default is `168` hours, which is equivalent to a week): maximum age of the cache in hours to be considered as valid when `TLDR_CACHE_ENABLED` is set to `1`.
94
+
-`TLDR_CACHE_ENABLED` (default is `1`):
95
+
- If set to `1`, the client will first try to load from cache, and fall back to fetching from the internet if the cache doesn't exist or is too old.
96
+
- If set to `0`, the client will fetch from the internet, and fall back to the cache if the page cannot be fetched from the internet.
97
+
-`TLDR_CACHE_MAX_AGE` (default is `168` hours, which is equivalent to a week): maximum age of the cache in hours to be considered as valid when `TLDR_CACHE_ENABLED` is set to `1`.
89
98
90
99
#### Cache location
91
100
92
101
In order of precedence:
93
-
*`$XDG_CACHE_HOME/tldr`
94
-
*`$HOME/.cache/tldr`
95
-
*`~/.cache/tldr`
102
+
-`$XDG_CACHE_HOME/tldr`
103
+
-`$HOME/.cache/tldr`
104
+
-`~/.cache/tldr`
96
105
97
106
If you are experiencing issues with *tldr*, consider deleting the cache files before trying other measures.
98
107
@@ -121,37 +130,41 @@ an autocomplete for `tldr` for `fish`.
121
130
122
131
For networks that sit behind a proxy, it may be necessary to disable SSL verification for the client to function. Setting the following:
123
132
124
-
*`TLDR_ALLOW_INSECURE=1`
133
+
-`TLDR_ALLOW_INSECURE=1`
125
134
126
135
will disable SSL certificate inspection. This __should be avoided__ unless absolutely necessary.
127
136
128
137
### Colors
129
138
130
139
Values of the `TLDR_COLOR_x` variables may consist of three parts:
0 commit comments