Live data from Hacker News

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

oh-heck.dev

91–100 of 132 posts

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

#91

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

Personally I like getting insulted by my tools. I always put `Defaults insults` in my /etc/sudoers file so every time I enter the wrong password, I get insulted. I wish more tools supported this. I think computing in general is fun, and wish more tools had fun things like this.

    $ sudo whoami

    [sudo] password for user:
    Your mother was a hamster and your father smelt of elderberries!

    [sudo] password for user:
    Your mind just hasn't been the same since the electro-shock, has it?

    [sudo] password for user:
    sudo: 3 incorrect password attempts

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

#92
post #64
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 hate that it spews so much irrelevant things. Run "apropos directory" on macos and see if you can find "ls" between create_automation_image_overlay(8), -(8) - ."====================== create_automation_image_overlay overlay automation image content onto another directory ." ." and CPANPLUS::Internals::Source::Memory(3pm) - In memory implementation n .SS "$cb->_|_memory_retrieve_source(name => $name, [path => $path,…

Let's say I forgot how to call `ls`, then I'd run `apropos directory` with ` | grep -i list` appended afterwards. Full command would be:

    apropos directory | grep -i list
And now it's just 7 options, where `ls` is easy to find :)

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

#93

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…

That actually runs the commands right? How do you deal with commands that perform some action that maybe couldn't be reverted easily?

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

#96
I remember writing a Advent-like text adventure game (Advent inspired Zork). The natural language interface looked easy to write.

Boy was I wrong.

Using a specialized language for interacting with a computer is because NLP is so very hard.

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

#97
post #32

Earlier quoted context omitted.

man -k has been working just fine for me for 30+ years

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

Just don't be one of those people who go around saying 'hehe apropros of nothing mirite' at seemingly everything!

(Also, `man --apropros` is the long option fwiw. I'm not really suggesting that as a better alternative though!)

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

#98
post #25
post #15

This used to be called "man".

`man` is when you know the command but don’t remember how to use it. When you don’t know/remember the command things get harder.

`man -k` searches the short descriptions. (See `man man`!)

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

#99
post #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.

[deleted]

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

#100

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

Personally I like getting insulted by my tools. I always put `Defaults insults` in my /etc/sudoers file so every time I enter the wrong password, I get insulted. I wish more tools supported this. I think computing in general is fun, and wish more tools had fun things like this. $ sudo whoami [sudo] password for user: Your mother was a hamster and your father smelt of elderberries! [sudo] password for user: Your mind…

I didn't know about that! yeah, that's going to be a new personal standard practice.
Post reply on HN