Skip to content

Commit 975813e

Browse files
committed
update changelog and readme
1 parent 042b12d commit 975813e

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# 0.8.1
22

33
* When pages are updated, the client now shows the download location.
4+
* Add optional auto-update functionality (`--auto-update-interval`)
45

56
# 0.8.0
67

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,17 @@ Available options:
3838
-L,--language LOCALE Preferred language for the page returned
3939
COMMAND name of the command
4040
-a,--about About this program
41+
--auto-update-interval DAYS
42+
Perform an automatic update if the cache is older
43+
than DAYS
4144
```
4245

4346
Or a much better example of the usage:
4447

4548
``` shellsession
4649
$ tldr tldr
4750
tldr
48-
Simplified man pages.More information: https://tldr.sh.
51+
Simplified man pages. More information: https://tldr.sh.
4952

5053
- Get typical usages of a command (hint: this is how you got here!):
5154
tldr {{command}}
@@ -57,6 +60,13 @@ Simplified man pages.More information: https://tldr.sh.
5760
tldr {{git checkout}}
5861
```
5962

63+
On the first run, this programme caches all available tldr pages.
64+
Since the number of available tldr pages rises quickly, it is recommended to regularly update the cache.
65+
Such an update can be run manually with `tldr --update`.
66+
Users of this client can enable automatic updates by running it with the option `--auto-update-interval DAYS` specified.
67+
The client will then check whether the cached version of the tldr pages is older than `DAYS` days and perform an update in that case.
68+
To enable this functionality permanemtly, users can put the line `alias tldr="tldr --auto-update-interval DAYS"` in their shell configuration file (e.g. `.bashrc`, `.zshrc`) with the desired update interval specified.
69+
6070
## Snapshot
6171

6272
![tldr](https://cloud.githubusercontent.com/assets/737477/24076451/2a5a604c-0c57-11e7-9bf7-13d76e8e7f12.png)

0 commit comments

Comments
 (0)