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

Programmer Humor

19623 readers
2 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
[โ€“] zlatko@programming.dev 3 points 1 year ago (1 children)

Why not just cd $XDG_DOWNLOAD_DIR in the first place?

[โ€“] joyjoy@lemm.ee 3 points 1 year ago* (last edited 1 year 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.