D or d come on
D or d come on
![](https://programming.dev/pictrs/image/16fdd440-a030-4a38-9439-59d3ab335d21.jpeg?format=webp&thumbnail=128)
![](https://programming.dev/pictrs/image/16fdd440-a030-4a38-9439-59d3ab335d21.jpeg?format=webp)
D or d come on
You're viewing a single thread.
i renamed my home folders to dl
, docs
, pics
, etc. and use auto-cd (whatever its called) to just type dl
instead of cd dl
You could just use aliases in your bashrc
alias dl=cd ~/Downloads
Might need quotes around the command.
sure, but what if need a subfolder of dl
, like dl/source
or whatever. same with documents and pictures
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
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
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)
Oh, yeah i think i also confused them with symlinks, you could use them?
true, but then i would have duplicates of those folders in home directory
That's fair