Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #236268

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

From Richard Owlett <rowlett@cloud85.net>
Newsgroups linux.debian.user
Subject Re: A feasible method to add examples to man pages?
Date 2021-06-22 13:00 +0200
Message-ID <CsMil-da-1@gated-at.bofh.it> (permalink)
References (2 earlier) <Csyfo-bl-1@gated-at.bofh.it> <CsyIp-A5-3@gated-at.bofh.it> <CsB3A-1QV-1@gated-at.bofh.it> <CsD5n-3eR-1@gated-at.bofh.it> <CsJku-6XQ-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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).
> 

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

A feasible method to add examples to man pages? Richard Owlett <rowlett@cloud85.net> - 2021-06-21 17:30 +0200
  Re: A feasible method to add examples to man pages? Richard Owlett <rowlett@cloud85.net> - 2021-06-21 17:50 +0200
  Re: A feasible method to add examples to man pages? Stefan Monnier <monnier@iro.umontreal.ca> - 2021-06-21 18:20 +0200
    Re: A feasible method to add examples to man pages? Curt <curty@free.fr> - 2021-06-21 22:00 +0200
      Re: A feasible method to add examples to man pages? Richard Owlett <rowlett@cloud85.net> - 2021-06-21 22:30 +0200
        Re: A feasible method to add examples to man pages? Brian <ad44@cityscape.co.uk> - 2021-06-22 01:00 +0200
          Re: A feasible method to add examples to man pages? Greg Wooledge <greg@wooledge.org> - 2021-06-22 03:10 +0200
            Re: A feasible method to add examples to man pages? Curt <curty@free.fr> - 2021-06-22 09:50 +0200
              Re: A feasible method to add examples to man pages? Richard Owlett <rowlett@cloud85.net> - 2021-06-22 13:00 +0200
                Re: A feasible method to add examples to man pages? Curt <curty@free.fr> - 2021-06-22 14:10 +0200
                Re: A feasible method to add examples to man pages? Richard Owlett <rowlett@cloud85.net> - 2021-06-22 14:40 +0200
                Re: A feasible method to add examples to man pages? Curt <curty@free.fr> - 2021-06-22 15:20 +0200
                Re: A feasible method to add examples to man pages? Richard Owlett <rowlett@cloud85.net> - 2021-06-22 15:50 +0200
                Re: A feasible method to add examples to man pages? Curt <curty@free.fr> - 2021-06-22 16:40 +0200
                Re: A feasible method to add examples to man pages? Andrei POPESCU <andreimpopescu@gmail.com> - 2021-06-22 16:30 +0200
                Re: A feasible method to add examples to man pages? Brian <ad44@cityscape.co.uk> - 2021-06-22 18:20 +0200
              Re: A feasible method to add examples to man pages? Stefan Monnier <monnier@iro.umontreal.ca> - 2021-06-22 18:20 +0200
                Re: A feasible method to add examples to man pages? rhkramer@gmail.com - 2021-06-23 13:20 +0200
              Re: A feasible method to add examples to man pages? Richard Owlett <rowlett@cloud85.net> - 2021-06-23 21:40 +0200
  Re: A feasible method to add examples to man pages? Nate Bargmann <n0nb@n0nb.us> - 2021-06-21 19:00 +0200
    Re: A feasible method to add examples to man pages? Richard Owlett <rowlett@cloud85.net> - 2021-06-21 20:30 +0200
  Re: A feasible method to add examples to man pages? Marco Möller <talby@debianlists.mobilxpress.net> - 2021-06-21 20:50 +0200

csiph-web