Skip to content

Commit 70acfad

Browse files
pepa65jwerle
authored andcommitted
Added commandline option --version (#31)
* First submission of tldr-bash-client * Added commandline option --version
1 parent 24c11e5 commit 70acfad

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

_posts/2017-02-06-tldr-bash-client.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ category: default
66
tags: [color, github, docs, client, markdown, bash]
77
---
88
{% include JB/setup %}
9-
Source code repo: https://github.com/pepa65/tldr-bash-client
10-
Author: pepa65 <[email protected]>
9+
10+
* Source code repo: https://github.com/pepa65/tldr-bash-client
11+
* Author: pepa65 <[email protected]>
1112

1213
# tldr-bash-client
1314

@@ -45,24 +46,29 @@ coreutils, less, grep, unzip, curl / wget
4546
-m, --markdown <command>: Show the markdown source for command
4647
-c, --cache: Cache all pages by downloading archive from repo
4748
-u, --update: Re-download index file from repo
49+
50+
-v, --version: Version number and repo location
4851
[-h, -?, --help]: This help overview
4952
50-
All pages and the index are cached locally under ~/.config/tldr.
51-
By default, the cached copies will be re-downloaded after 60 days.
53+
All pages and the index are cached locally under ~/.config/tldr
54+
By default, the cached copies will be re-downloaded after 60 days
5255
```
5356

5457
## Customisation
58+
5559
The colors and other styling of the 5 elements of tldr pages can be modified
5660
either by editing the first few lines of the scipt, or by setting the following
5761
environment variables:
62+
5863
* TLDR_TITLE_STYLE (defaults to: Newline Space Bold Yellow)
5964
* TLDR_DESCRIPTION_STYLE (defaults to: Space Yellow)
6065
* TLDR_EXAMPLE_STYLE (defaults to: Newline Bold Green)
6166
* TLDR_CODE_STYLE (defaults to: Space Bold Blue)
6267
* TLDR_VALUE_STYLE (defaults to: Bold Cyan)
6368

6469
Also the error color and page expiry can easily be set:
65-
* TLDR_ERROR_COLOR (defaults to: Red)
70+
71+
* TLDR_ERROR_COLOR (defaults to: Space Red)
6672
* TLDR_EXPIRY (defaults to: 60)
6773

6874
## Contributing

0 commit comments

Comments
 (0)