Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Symlink into a subdirectory of home - e.g. ~/.aws/config #380

Open
bradical opened this issue Apr 2, 2024 · 4 comments
Open

Comments

@bradical
Copy link

bradical commented Apr 2, 2024

I was wondering if you had any suggestions for symlinking a config file into a subdirectory of a .dot directory in home, specifically .aws files?

Is there any capacity to do this already with the current .symlink behavior?

@bradical bradical changed the title Symlink into a subdirectory of home - e.g. ~/.aws/config Question: Symlink into a subdirectory of home - e.g. ~/.aws/config Apr 2, 2024
@redhotvengeance
Copy link

Speaking personally, I add a link.sh to each folder that has more complicated linking needs. And then I have a script/link script to run all of them: https://github.com/redhotvengeance/dotfiles/blob/fe8be45f7c38a098f104a8cf0c6f6a61c9901d0a/script/link#L25

@bradical
Copy link
Author

bradical commented Apr 3, 2024

Clever. Thanks! So this could create the ~/.aws directory if didn't exist and add a config file.

@redhotvengeance
Copy link

@bradical Yep. Check out one of my link.sh files that does several actions: https://github.com/redhotvengeance/dotfiles/blob/main/nvim/link.sh

@schangj09
Copy link

Hey,
This is pretty nice. I also wanted to make links in directories and I took a different approach. My idea is to use a different extension '.dsymlink' and update bootstrap so that it links those files into a sub-directory of home.
schangj09@db41cc8

Note: I didn't test it much, so for example, I'm not sure what happens when the directory doesn't exist, but it should be easy to fix if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants