Cut down screenshots, removed mention of ncurses (tput) as requirement
|
@ -20,7 +20,7 @@ sudo chmod +x $location
|
||||||
If the location is not in $PATH, you need to specify the path to run it.
|
If the location is not in $PATH, you need to specify the path to run it.
|
||||||
|
|
||||||
### Prerequisites
|
### Prerequisites
|
||||||
coreutils, ncurses(tput), less, grep, unzip, curl / wget
|
coreutils, less, grep, unzip, curl / wget
|
||||||
|
|
||||||
![tldr screenshot usage](tldr-usage.png?raw=true)
|
![tldr screenshot usage](tldr-usage.png?raw=true)
|
||||||
|
|
||||||
|
|
4
tldr
|
@ -4,7 +4,7 @@ set +x -o pipefail
|
||||||
# Bash tldr client
|
# Bash tldr client
|
||||||
# forked from Ray Lee, http://github.com/raylee/tldr
|
# forked from Ray Lee, http://github.com/raylee/tldr
|
||||||
# modified and expanded by pepa65: http://github.com/pepa65/tldr
|
# modified and expanded by pepa65: http://github.com/pepa65/tldr
|
||||||
# Requiring: coreutils, ncurses(tput), less, grep, unzip, curl/wget
|
# Requiring: coreutils, less, grep, unzip, curl/wget
|
||||||
|
|
||||||
# The 5 elements in TLDR markup that can be styled with these colors and
|
# The 5 elements in TLDR markup that can be styled with these colors and
|
||||||
# backgrounds (last one specified will be used) and modes (more can apply):
|
# backgrounds (last one specified will be used) and modes (more can apply):
|
||||||
|
@ -179,7 +179,7 @@ Unlinted(){ # $1: error message
|
||||||
exit 4
|
exit 4
|
||||||
}
|
}
|
||||||
|
|
||||||
Get_tldr(){ # $1: page
|
Get_tldr(){ # $1: page
|
||||||
# convert the local platform name to tldr's version
|
# convert the local platform name to tldr's version
|
||||||
# extract the platform key from index.json, return preferred subpath to page
|
# extract the platform key from index.json, return preferred subpath to page
|
||||||
local desc=$(tr '{' '\n' <$index |grep "\"name\":\"$1\"")
|
local desc=$(tr '{' '\n' <$index |grep "\"name\":\"$1\"")
|
||||||
|
|
After Width: | Height: | Size: 67 KiB |
Before Width: | Height: | Size: 117 KiB |
After Width: | Height: | Size: 15 KiB |
BIN
tldr-list.png
Before Width: | Height: | Size: 22 KiB |
After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 32 KiB |
After Width: | Height: | Size: 45 KiB |
BIN
tldr-page.png
Before Width: | Height: | Size: 57 KiB |
After Width: | Height: | Size: 49 KiB |
BIN
tldr-usage.png
Before Width: | Height: | Size: 83 KiB |