1407
D or d come on (i.imgur.com)
you are viewing a single comment's thread
view the rest of the comments
[-] aleq@lemmy.world 121 points 10 months ago

Reasonable and sane behavior of cd. Just get into the habit of always using lower case names for files and directories, that's how our forefathers did it.

[-] drolex@sopuli.xyz 89 points 10 months ago

Yes, but this is the default on many distros, so for once the end user is not to blame

[-] MooseBoys@lemmy.world 43 points 10 months ago

Even worse, many components will ignore the XDG_DOWNLOAD_DIR var so even if you manually change it to $HOME/downloads (lower-case) it will often break things.

[-] Synthead@lemmy.world 34 points 10 months ago

Keep filling those bugs and stop complaining on random forums, kids

[-] FiskFisk33@startrek.website 5 points 9 months ago

Porque no los dos?

[-] schnurrito@discuss.tchncs.de 27 points 10 months ago

Something something symlink Downloads to downloads

[-] MooseBoys@lemmy.world 2 points 10 months ago

Yeah but the main issue is that I don’t want there to be a Downloads directory in my home.

[-] zlatko@programming.dev 2 points 10 months ago

Why not just cd $XDG_DOWNLOAD_DIR in the first place?

[-] joyjoy@lemm.ee 2 points 9 months ago* (last edited 9 months ago)

That's not an environment variable. It's defined in ${XDG_CONFIG_HOME:-$HOME/.config}/user-dirs.dirs.

Though you can use the xdg-user-dir DOWNLOAD command to get it automatically.

[-] Honytawk@lemmy.zip 5 points 10 months ago

Lower case directories?

Eww

ILikeMineInAWayICanReadThemProperly, instead of ilikemineinawayicanreadthemproperly

[-] aleq@lemmy.world 13 points 10 months ago

If a directory has multiple words in it I usually do kebab case: i-like-mine-in-a-way-i-can-read-them-properly. Both easier to read and type than pascal case.

For more complex filenames I use a combination of kebab-case and snake_case, where the underscore separates portions of the file name and kebab-case the parts of those portions. E.g. movie-title_release-date-or-year_technical-specifications.mp4

[-] jasory@programming.dev 1 points 10 months ago

CamelCase directories and snake_case files.

[-] eek2121@lemmy.world 2 points 10 months ago

Do. none of you use case insensitive autocomplete? “do ” “Downloads”

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

Programmer Humor

18890 readers
959 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