this post was submitted on 02 Oct 2023
1409 points (96.7% liked)

Programmer Humor

19821 readers
446 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 20 points 1 year ago (5 children)
[–] [email protected] 3 points 1 year ago (2 children)

This. Except don't use zsh because this is default in every single shell

[–] [email protected] 18 points 1 year ago (1 children)

Nope. Bash (at least by default on Ubuntu) doesn't have case insensitive tab completion.

[–] [email protected] 2 points 1 year ago (1 children)

afaik there’s options you can turn on that enable it

search .inputrc and set completion-ignore-case On

[–] [email protected] 4 points 1 year ago

Still not a default. Also it's not the same thing.

[–] [email protected] 5 points 1 year ago (1 children)

Bash never does this by default

[–] [email protected] 1 points 1 year ago (1 children)

Bash has never not had tab completion out of the box for me

[–] [email protected] 2 points 1 year ago

Tab completion is default, but completing an uppercase word by typing a lowercase letter is not

[–] [email protected] 3 points 1 year ago

I can't relate to this issue at all exactly because I use zsh. Also a little bit related but the fuck

[–] [email protected] 0 points 1 year ago (1 children)

I remember having that when I used OhMyZsh, but after going back to a more bespoke config it doesn't work anymore. Also tried using zsh as a different user to ignore my own configs, that doesn't work either.

tldr, it's not default zsh behavior.

[–] [email protected] 5 points 1 year ago (1 children)

It's not default in zsh maybe, but it's default in the oh-my-zsh config most people use.

I ran zsh for a while without that config and manually configured everything and it also works, but takes quite a bit of web searching to find all the knobs to turn.

[–] [email protected] 2 points 1 year ago

I don't think most people use oh-my-zsh. It's very popular, and a lot of people use it, but I think most is a stretch.

Either way, it's just a set of plugins and configs so of course you can get it to work on any setup. Just saying that it's not inherent to zsh, and you can probably get similar behavior in most shells with a similar config.