News for hackers. Stuff that matters.
Re:The Linux cheat command by m_x on Thursday June 02, 2022 @01:25PM (#31597867)
As I don't need it that often, I prefer the zero-install `curl cht.sh/tar`.
Re:The Linux cheat command by adamhearn on Thursday June 02, 2022 @02:29PM (#31598759)
I put this in my ZSH profile.

  function cheat() {
      curl cht.sh/$1
  }
Re:The Linux cheat command by repox on Friday June 03, 2022 @03:29AM (#31605293)
I have a similar setup:

    function cheat() {
        cheatcommand=$1
        shift;
        IFS='+'
        str="$*"
        if [ "$#" -eq 0 ]; then
            curl cht.sh/$cheatcommand
        else
            curl cht.sh/$cheatcommand/$str
        fi
    }
Re:The Linux cheat command by reidjs on Thursday June 02, 2022 @01:36PM (#31598037)
I use this fairly regularly! If you don't know, you can type almost any command, e.g. `curl cht.sh/ls` and it shows you common usages of `ls` with a short description for each command

Man pages for the lazy.

Re:The Linux cheat command by galgot on Thursday June 02, 2022 @02:00PM (#31598346)
But sh... sorry "cheat" is easier to remember, maybe.