Live data from Hacker News

Show HN: Oh-heck, a terminal command for when you forget other terminal commands

oh-heck.dev

81–90 of 132 posts

Re: Show HN: Oh-heck, a terminal command for when you forget other terminal commands

#82
post #15

This used to be called "man".

Oh the hubris in this comment.

Because a man page for how to remove a limit of 50 files in a certain directory created after a certain date is equal to an AI-powered script to make the entire almost unreadable command in 2 seconds.

Re: Show HN: Oh-heck, a terminal command for when you forget other terminal commands

#84
post #79

The quick demo looks pretty dope, but I am never gonna pay a subscription for a closed source token-identified cli tool. I would have paid a one time fee for a similar tool that doesn't phone home to check my api key every time I use it.

My guess is that it's relying on openai calls to do the hard work, and thus someone has to pay for them. I believe that GPT-3, which this relies on, is not open source and probably not easy to run on your device.

Re: Show HN: Oh-heck, a terminal command for when you forget other terminal commands

#85
post #79

The quick demo looks pretty dope, but I am never gonna pay a subscription for a closed source token-identified cli tool. I would have paid a one time fee for a similar tool that doesn't phone home to check my api key every time I use it.

This couldn't really run otherwise, sadly, as it uses GPT-3. I guess it could use a FOSS model, but you wouldn't want to run that locally.

Re: Show HN: Oh-heck, a terminal command for when you forget other terminal commands

#86
post #22

Am I crazy to think that a tool like this is an accident waiting to happen? I'm assuming that this tool is for people who aren't familiar with the system enough to get what they need from the man pages and would rather not invest the time to become deeper on it. If you don't remember the command you need to use, how can you be sure it is the correct command and options before you run it? edit: typo

Not until it starts recommended troll answers like

    sudo rm -rf /

Re: Show HN: Oh-heck, a terminal command for when you forget other terminal commands

#87
I just make bash functions in my dotfiles for use cases like these, particularly good CLI arg combinations from Stack Overflow answers, etc.

Example:

    # 2022-02-07
    # because `poetry show --outdated` includes *all* packages (!), not just top-level dependencies
    function poetry-show-outdated {
            poetry show --outdated | grep --file=
Or:

    function disk-usage-summary () {
            # output high-level disk usage stats
            set -x
            du --human-readable --summarize
            du --human-readable --max-depth=1
            df --human-readable --total
            set +x
    }

Re: Show HN: Oh-heck, a terminal command for when you forget other terminal commands

#89

compgen -c

this is new to me and has no man entry. what is it actually doing? listing all executables in PATH plus all callable functions?

It's a bash built-in, so the documentation lives in "help compgen", and the full blown bash manual.

Re: Show HN: Oh-heck, a terminal command for when you forget other terminal commands

#90
post #84
post #79

The quick demo looks pretty dope, but I am never gonna pay a subscription for a closed source token-identified cli tool. I would have paid a one time fee for a similar tool that doesn't phone home to check my api key every time I use it.

My guess is that it's relying on openai calls to do the hard work, and thus someone has to pay for them. I believe that GPT-3, which this relies on, is not open source and probably not easy to run on your device.

Yep, if it uses GPT-3, that has to be the case:

Microsoft announced on September 22, 2020, that it had licensed "exclusive" use of GPT-3; others can still use the public API to receive output, but only Microsoft has access to GPT-3's underlying model. https://en.wikipedia.org/wiki/GPT-3

Post reply on HN