this post was submitted on 02 Oct 2023
1350 points (96.6% liked)

Programmer Humor

19564 readers
544 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
[–] Sh1nyM3t4l4ss@lemmy.world 87 points 1 year ago (4 children)

Use a shell with decent auto-completion. I have not been irritated by this in years.

[–] nogooduser@lemmy.world 25 points 1 year ago (3 children)

Won’t autocomplete fail if you do “cd d” and then try the autocomplete?

Or is that what you mean by “decent” auto-completion?

[–] bdonvr@thelemmy.club 29 points 1 year ago

No, it will probably go to "Documents", and if you hit tab again it should go to "Downloads". (Assuming you have the normal default folders)

[–] rasensprenger@feddit.de 24 points 1 year ago

bash's autocomplete fails (at least with default settings), but e.g. zsh can figure out what you mean

[–] newIdentity@sh.itjust.works 9 points 1 year ago (1 children)

Not with a decent autocomplete. It will look for a folder starting with a small d and if it doesn't exist it looks at a folder with a large D.

[–] pgp@sh.itjust.works 5 points 1 year ago (1 children)

The choice of the letter d was brilliant, that's for sure. Now I'm imagining a folder with a large D.

[–] newIdentity@sh.itjust.works 3 points 1 year ago (1 children)

I don't get what you mean. It doesn't matter if you write a uppercase or lowercase d

[–] Zaphod@discuss.tchncs.de 10 points 1 year ago (1 children)
[–] wviana@lemmy.eco.br 4 points 1 year ago

No. Zsh. It's pretty easy to have a nice auto compl. No need for omz. After knowing poweline10k I just use it and syntax highlight plugin, manually installed. There is no need to add entire omz.

[–] lightnsfw@reddthat.com 5 points 1 year ago

I just don't use caps when naming directories

[–] Skimmer@lemmy.zip 2 points 1 year ago (4 children)

What shell would you recommend? 🤔

[–] Sh1nyM3t4l4ss@lemmy.world 16 points 1 year ago (1 children)

I use fish which is quite nice OOTB, although if you want a posix compliant shell, zsh with some plugins is also great.

[–] ayaya@lemdro.id 4 points 1 year ago

If you need to run a set of commands or a script with fish you can just toss them in a file and run bash file.sh. I have been daily driving fish for years and I don't even have think about it.

[–] stevehobbes@lemm.ee 6 points 1 year ago (1 children)
[–] wviana@lemmy.eco.br 4 points 1 year ago

Zsh.

Omg looks like people think omz is a shell.

[–] Swedneck@discuss.tchncs.de 3 points 1 year ago

I personally like xonsh despite the minor amount of wonkiness it has, it's so nice to have python available directly in your shell, it takes the "i don't care about the quality of my code i just want this shit to work with minimal effort"-ness of bash and turns it up to 13.