All Projects → raylee → Tldr Sh Client

raylee / Tldr Sh Client

Licence: mit
Simplified and community-driven man pages

Programming Languages

shell
77523 projects

Labels

Projects that are alternatives of or similar to Tldr Sh Client

Tl
tldr for R!
Stars: ✭ 52 (-91.08%)
Mutual labels:  tldr
Tldr
Golang command line client for tldr https://github.com/tldr-pages/tldr
Stars: ✭ 210 (-63.98%)
Mutual labels:  tldr
tldr-php
PHP Client for tldr
Stars: ✭ 18 (-96.91%)
Mutual labels:  tldr
Tealdeer
A very fast implementation of tldr in Rust.
Stars: ✭ 1,189 (+103.95%)
Mutual labels:  tldr
Tachyons Tldr
quick lookup for tachyon classes, scales and colour palette
Stars: ✭ 170 (-70.84%)
Mutual labels:  tldr
tldr
Simplified and community-driven man pages (tldr-pages) in a single binary.
Stars: ✭ 33 (-94.34%)
Mutual labels:  tldr
Tldr
📚 Collaborative cheatsheets for console commands
Stars: ✭ 36,408 (+6144.94%)
Mutual labels:  tldr
Tldr Node Client
Node.js command-line client for tldr pages
Stars: ✭ 292 (-49.91%)
Mutual labels:  tldr
Tldr C Client
C command-line client for tldr pages
Stars: ✭ 180 (-69.13%)
Mutual labels:  tldr
red-tldr
red-tldr is a lightweight text search tool, which is used to help red team staff quickly find the commands and key points they want to execute, so it is more suitable for use by red team personnel with certain experience.
Stars: ✭ 159 (-72.73%)
Mutual labels:  tldr
Tldr
Text summarizer for golang using LexRank
Stars: ✭ 92 (-84.22%)
Mutual labels:  tldr
Tldrlfs
Too Long; Didn't Read Linux From Scratch
Stars: ✭ 139 (-76.16%)
Mutual labels:  tldr
TLDR.jl
A package for fast help and snippets
Stars: ✭ 16 (-97.26%)
Mutual labels:  tldr
Tldr Alfred
Alfred workflow for TLDR
Stars: ✭ 70 (-87.99%)
Mutual labels:  tldr
alfred-tldr
tldr with alfred workflow written in Go
Stars: ✭ 77 (-86.79%)
Mutual labels:  tldr
Tldr
fast and interactive tldr client written with go
Stars: ✭ 984 (+68.78%)
Mutual labels:  tldr
Dilettantes-Guide-to-Linting
Setting up ESLint, Prettier, VS Code, and the AirBnB style guide in beautiful harmony.
Stars: ✭ 18 (-96.91%)
Mutual labels:  tldr
Tldr Python Client
Python command-line client for tldr pages
Stars: ✭ 317 (-45.63%)
Mutual labels:  tldr
tldr-flutter
simplified man-pages, a tldr.sh client
Stars: ✭ 65 (-88.85%)
Mutual labels:  tldr
tldr.el
tldr client for Emacs
Stars: ✭ 118 (-79.76%)
Mutual labels:  tldr

tldr

A fully-functional POSIX shell client for tldr. This version aims to be the easiest, smallest, and most universal client to set up on a new account, without sacrificing any features. It uses only /bin/sh features and curl, and tested on Linux, OSX, FreeBSD, with bash, sh, dash, ksh, zsh, csh.

tldr screenshot

Installation

mkdir -p ~/bin
curl -o ~/bin/tldr https://raw.githubusercontent.com/raylee/tldr/master/tldr
chmod +x ~/bin/tldr

Then try using the command! If you get an error such as -bash: tldr: command not found, you may need to add ~/bin to your $PATH. On OSX edit ~/.bash_profile (~/.bashrc on Linux), and add the following line to the bottom of the file:

export PATH=$PATH:~/bin

If you'd like to enable shell completion (eg. tldr w<tab><tab> to get a list of all commands which start with w) then add the following to the same startup script:

complete -W "$(tldr 2>/dev/null --list)" tldr

Prerequisites

curl needs to be available somewhere in your $PATH. The script is otherwise self-contained.

Usage

tldr [options] command

[options]
	-l, --list:      show all available pages
	-p, --platform:  show page from specific platform rather than autodetecting
	-u, --update:    update, force retrieving latest copies of index and <command>
	-h, -?, --help:  this help overview

command
	Show examples for this command

The client caches a copy of all pages and the index locally under ~/.config/tldr. By default, the cached copies will automatically update every 14 days.

Customization

You can change the styling of the output from tldr by defining some environment variables. For example, try adding the following lines to your ~/.bash_profile file (OSX) or ~/.bashrc file (Linux).

export TLDR_HEADER='magenta bold underline'
export TLDR_QUOTE='italic'
export TLDR_DESCRIPTION='green'
export TLDR_CODE='red'
export TLDR_PARAM='blue'

Possible settings are: black, red, green, yellow, blue, magenta, cyan, white, onblue, ongrey, reset, bold, underline, italic, eitalic, default (some variables may not work in some shells).

NB: You will need to log into a new session to see the effect. Just run the commands in the terminal directly to see the change immediately and temporarily.

Contributing

This is the result of a Sunday afternoon project. It's been lightly tested under Mac OS X 10.9 and Ubuntu Linux 15.10. I've tried to make the project as portable as possible, but if there's something I missed I'd love your help.

  • Want a new feature? Feel free to file an issue for a feature request.
  • Find a bug? Open an issue please, or even better send me a pull request.

Contributions are always welcome at any time!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].