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
[–] darcy@sh.itjust.works 1 points 1 year ago (2 children)

sure, but what if need a subfolder of dl, like dl/source or whatever. same with documents and pictures

[–] Rodeo@lemmy.ca 2 points 1 year ago

You have to try it but I think it still works. Aliases just replaced the text you typed with text in the alias, so if you append a subfolder to the alias it should also be appended to the command.

It's like using !! when navigating folders. You can do cd ~/Downloads and then !!/source and it resolves to cd ~/Downloads/source

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

I'm sure that still works with aliases. Then you'll have dl/source and Doenloads/source that are the same location. Using aliases will mean any script or program you may use that might point to them won't just create a new default folder that is then no longer the same location as the renamed one that you'll expect everything in

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

ok but if i open a gui file explorer, i can type dl to go to focus downloads, and do can match downloads or documents (or dotfiles)

[–] MrScottyTay@sh.itjust.works 2 points 1 year ago (1 children)

Oh, yeah i think i also confused them with symlinks, you could use them?

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

true, but then i would have duplicates of those folders in home directory