Live data from Hacker News

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

oh-heck.dev

101–110 of 132 posts

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

#101
post #6

And here's a command that tries to fix up a mistake after you type it. Like this one, it's also named like what you might say afterwards. https://github.com/nvbn/thefuck

This is great. Is there an easy "open source terminal emulator" where I can run this after I typed enter but before it is executed? More like. is there a way the terminal can understand I typed a bad command and then give suggestions for changing it.

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

#102
post #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?"

Tbf, 'ip addr' is even easier to remember as far as I'm concerned

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

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

Guess-and-verify seems like a good strategy here. Maybe I'm not even sure which command I should be using for some task, but once I've been given a command and some options I can go read the man page to verify they do what I want

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

#104

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.

I would actually be interested in trying this out, but the things pointed out here have got me holding off for now: https://news.ycombinator.com/item?id=30721983

Might be worth giving the website/messaging a once-over

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

#105
Dude appears to be doxed fwiw.

Led to finding this funny snippet in the 1992 ev_keymap.h file:

#define NX_NUMKEYCODES 256 /* Highest key code is 0xff. ADB used to use 0x80 for keydown state, but who the heck uses adb anymore. */

https://en.wikipedia.org/wiki/Apple_Desktop_Bus

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

#106

Earlier quoted context omitted.

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.

ah, very interesting!

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

#107
post #6

And here's a command that tries to fix up a mistake after you type it. Like this one, it's also named like what you might say afterwards. https://github.com/nvbn/thefuck

This is great. Is there an easy "open source terminal emulator" where I can run this after I typed enter but before it is executed? More like. is there a way the terminal can understand I typed a bad command and then give suggestions for changing it.

I would guess the shell is a more accessible place to accomplish something like this. For example: https://superuser.com/questions/175799/does-bash-have-a-hook...

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

#108
post #6

And here's a command that tries to fix up a mistake after you type it. Like this one, it's also named like what you might say afterwards. https://github.com/nvbn/thefuck

aliased as 'duck' to be work-friendly

Where do you work that anyone would care you use a command called « fuck »?

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

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

Maybe you memorize all your tools very well but I find myself going to Google typing in queries just like the demo all the time.

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

#110
post #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?"

I aliased ifconfig to this:

   echo "Local IPs: " 
   ifconfig | grep "inet " | grep -Fv 127.0.0.1 | awk '{print $2}'
   systemd-resolve --status | grep -A 2 Servers | sed 's/\ //g'
   ip route show
   curl --silent ipinfo.io | grep -E '\"ip|hostname|city' | sed 's/\"//g'

Hope this helps
Post reply on HN