Live data from Hacker News

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

oh-heck.dev

51–60 of 132 posts

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

#51
> But, Mike! What happens if I can't remember the oh-heck commands?

> Well, first, calm yourself, you fool. Once you've regained your composure, just type `oh-heck` into Terminal and follow the steps you numbskull.

I think that they're trying to be clever, but I prefer to not be insulted by my tools.

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

#52
post #47

Earlier quoted context omitted.

I used to have a hard time remembering apropos because I assumed 'apropos' was some sort of unixy mincing of another word or abbreviation or something, and I couldn't figure out what it meant. You know, like 'mkdir' means "MaKe DIRectory" But it turns out apropos is just a regular word. Once I learned this, I haven't had any more trouble with it. apropos : Of an appropriate or pertinent nature. https://en.wiktionary.…

Ohh I always thought "apropos" was from the French expression "à propos (de)... " which means "about". I naïvely believed that the person who coded this command must be French.

The English usage is borrowed from French![0] However, it doesn't look like the original author was French[1]. I shouldn't be, but I am quite surprised to see that the apropos command as we know it is 43 years old!

[0] https://en.wiktionary.org/wiki/apropos [1] https://www.mankier.com/1/apropos.mandoc#History

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

#53
post #37

Earlier quoted context omitted.

Apropos has the compelling feature that I get to feel clever for knowing the word.

I believe man -k just runs apropos.

Yep! man -k even has an ISO standard with which apropos is compliant https://www.mankier.com/1/apropos.mandoc#Standards

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

#54
This is awesome, can’t wait to try it out.

Does it handle questions that would result in piping commands together like “how do I get the third element in a JSON response from a curl command?”

This will be a great command alongside “fuck”

https://github.com/nvbn/thefuck

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

#55
post #47

Earlier quoted context omitted.

I used to have a hard time remembering apropos because I assumed 'apropos' was some sort of unixy mincing of another word or abbreviation or something, and I couldn't figure out what it meant. You know, like 'mkdir' means "MaKe DIRectory" But it turns out apropos is just a regular word. Once I learned this, I haven't had any more trouble with it. apropos : Of an appropriate or pertinent nature. https://en.wiktionary.…

Ohh I always thought "apropos" was from the French expression "à propos (de)... " which means "about". I naïvely believed that the person who coded this command must be French.

You are correct about the origin except it came from French into English long ago.

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

#56
post #47

Earlier quoted context omitted.

I used to have a hard time remembering apropos because I assumed 'apropos' was some sort of unixy mincing of another word or abbreviation or something, and I couldn't figure out what it meant. You know, like 'mkdir' means "MaKe DIRectory" But it turns out apropos is just a regular word. Once I learned this, I haven't had any more trouble with it. apropos : Of an appropriate or pertinent nature. https://en.wiktionary.…

Ohh I always thought "apropos" was from the French expression "à propos (de)... " which means "about". I naïvely believed that the person who coded this command must be French.

It's an ordinary word in Danish, meaning 'about something'. It can be used at the start of a sentence. Example: "Apropos vegetables I hate tomatoes".

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

#57
post #8
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

I was just about to share this. I use this daily and this magnificent tool is really helpful.

[deleted]

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

#58

I have a simpler solution. The use case is not precisely the same, but for many scenarios, it's effectively the same. Simply, like many, I have bash set up to record commands in .bash_history. I have it flush all the time, so .bash_history is always current. # keep persistent bash history across sessions export PROMPT_COMMAND='history -a;history -n' export HISTCONTROL=ignoredups shopt -s histappend Next, I have a sim…

Yep, history is my go to Rosetta Stone for remembering other commands.
Post reply on HN