4 ms·
Instead of installing one of the clients, it might be easier to just put this line into your bash.rc: function tldr { curl https://raw.githubusercontent.co
by no_gravity 11y ago
Instead of installing one of the clients, it might be easier to just put this line into your bash.rc:
function tldr { curl https://raw.githubusercontent.com/tldr-pages/tldr/master/pages/common/$1.md; }
- pervycreeper 11y agoInternet access is not a given at all times. One is often more likely to need manuals when there is a problem with it.
- dyladan 11y agoWell to be fair, you can just use the man pages if you don't have network access. Or you could git clone the repo and print it from the repo. I think his point is that this is a problem that is easy to overengineer and really doesn't need that much work to be done.
- stinos 11y agothere's also linux/osx/.. pages; but I like the idea so here's some Powershell function tldr($what) { ("common", "linux") | foreach { try { (iwr raw.githubusercontent.com/tldr-pages/tldr/master/pages/$_/$what.md).Content return } catch{} } }
- carlesfe 11y agoEven better if you pipe it to a markdown renderer: function tldr() { curl -s https://raw.githubusercontent.com/tldr-pages/tldr/master/pages/common/"$1.md" | mad -; } You can download `mad` at https://github.com/tj/mad.git https://github.com/tj/mad.git