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

Programmer Humor

18292 readers
820 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 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 17 points 9 months ago (3 children)
[–] [email protected] 1 points 9 months ago (2 children)

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

[–] [email protected] 16 points 9 months ago (1 children)

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

[–] [email protected] 2 points 9 months 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 9 months ago

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

[–] [email protected] 4 points 9 months ago (1 children)

Bash never does this by default

[–] [email protected] 1 points 9 months ago (1 children)

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

[–] [email protected] 2 points 9 months ago

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

[–] aleq 0 points 9 months 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 9 months 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.

[–] aleq 2 points 9 months 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.