[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: A feasible method to add examples to man pages?



On 06/22/2021 02:21 AM, Curt wrote:
On 2021-06-22, Greg Wooledge <greg@wooledge.org> wrote:
On Mon, Jun 21, 2021 at 11:50:22PM +0100, Brian wrote:
On Mon 21 Jun 2021 at 15:25:53 -0500, Richard Owlett wrote:

On 06/21/2021 02:36 PM, Curt wrote:
   curl https://cht.sh/:cht.sh > ~/bin/cht.sh
                             ^
                             |
                             +-- I don't understand that use of :


   chmod +x ~/bin/cht.sh
   cht.sh --standalone-install

q.v. https://github.com/chubin/cheat.sh/blob/master/doc/standalone.md


I don't understand what those 3 lines are attempting to do.
What should I be reading?

curl(1)
bash(1) (Redirection)
chmod(1)
less ~/bin/cht.sh

Just for the record, there should be a mkdir -p ~/bin in there as
well.

That was part of what threw me. I didn't think to check if ~/bin existed.

 And one might need to log out and back in to get ~/bin into
one's PATH, depending on how one's dot files are set up.  (Manual
modification of PATH is also acceptable.)

If ~/bin needs to be created, will logging out then in _guarantee_ it gets added to my path? That doesn't sound normal.

Is there a Debian specific article on when to use which ...\bin directory in $PATH and when/how to permanently add an additional directory.




That's what I get for blindly copying and pasting the "directions" from
Github. I should've have just told Monnier that the whole shebang
can be installed locally, which renders inoperative his nitpick about
not having the Net when he needs to cheat the most (or most often).






Reply to: