Live data from Hacker News

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

oh-heck.dev

21–30 of 132 posts

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

#21

Hey guys, I've created a really small tool that converts natural language into terminal commands using GPT3. To my chagrin, I seem to have a pathological inability to remember commands so I'm hoping this may help others suffering from such a terrible affliction.

This is fascinating. Is the input to oh-heck the complete GPT-3 prompt. Or is there something else added to it before sending to GPT-3? Is there any specific training used for this task? Or just off the shelf GPT-3?

Yea, it's not the full prompt, I've been gradually training it over the last couple of weeks. It still needs work though as it's quite rudimentary at the moment. Something I intend to focus on going forward.

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

#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

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

#23
post #17

Looks nice; how does it work under the hood? It looks like it needs an API key, so does that mean it sends all my inputs to some server? Does it taylor the answer based on your OS, like using Hombrew on Mac and apt on Ubuntu? Can it work offline?

So it's using the GPT-3 API, so yes, don't send anything sensitive! It doesn't taylor it based on your OS but that's actually a really neat idea, something I'll look to add. For now though, you can just write "how do I x on mac?" and it should work.

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

#24
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

> 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?

It asks you for confirmation before running it.

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

#26
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

It shows you the command and allows you to copy it on the clipboard. It's never going to execute it. For me it is useful more like a refreshing your memory than doing the actual work, therefore you need to know what you're doing from previous knowledge.

On the other hand if you are doing something dangerous or risky or you don't understand the suggested command, maybe you shouldn't use this tool without searching more info first.

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

#27
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

It's the same as having a word on the tip of your tongue, you'll remember it once you see it.

Only a fool would rely solely a tool like this to run things you don't understand.

That doesn't make it a dangerous tool to use though.

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

#28
post #5

So the "Terms of Service & Privacy" link doesn't work, and apparently it's a paid subscription service but you don't find that out until you've signed up and tried activating an API key? I'm sure these are just oversights but it leaves a very bad taste in my mouth!

    oh-heck "Bring up the network interface. Goddamit Linux where did ifconfig go? Why do you have to NIH everything?"

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

#29
post #26
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

It shows you the command and allows you to copy it on the clipboard. It's never going to execute it. For me it is useful more like a refreshing your memory than doing the actual work, therefore you need to know what you're doing from previous knowledge. On the other hand if you are doing something dangerous or risky or you don't understand the suggested command, maybe you shouldn't use this tool without searching mor…

>It shows you the command and allows you to copy it on the clipboard. It's never going to execute it. For me it is useful more like a refreshing your memory than doing the actual work, therefore you need to know what you're doing from previous knowledge.

That sounds suspciously like smitty[0].

Which was a useful tool when I was learning AIX. I'd expect a similar tool could be useful for learning other systems too.

[0] https://developer.ibm.com/articles/au-smit/

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

#30
post #18

Some people seem to be unaware of apropos too (old text based cli tool). $ apropos network interfaces (5) - network interface configuration for ifup and ifdown aseqnet (1) - ALSA sequencer connectors over network byteorder (3) - convert values between host and network byte order ctstat (8) - unified linux network statistics

I'm aware of apropos, but I usually forget how the command is named.

edit: I forget how apropos is named.

Post reply on HN