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

symbolic link to file, but not to dir #5

Open
jslby opened this issue Jan 15, 2019 · 1 comment
Open

symbolic link to file, but not to dir #5

jslby opened this issue Jan 15, 2019 · 1 comment

Comments

@jslby
Copy link

jslby commented Jan 15, 2019

Hello!
I try to use your script, but I run into unpleasant problems.

I created a .dotfiles repository in $HOME.
The file structure is approximately as follows:

- .dotfiles
-- .config
--- i3
---- config # i need only this file

In my $HOME there is also a .config folder and it contains many files of third-party programs, for example chromium which I would not like to upload. There are many such folders and they constantly appear.
I created a file in the .dotfiles/.config/i3/config repository and reckon that a symbolic link will be created on this file, but your script tries to create the entire .config directory. How to fix it?

Maybe you can check: if is dir -> recursive search all files and create symbolic link

@ajmalsiddiqui
Copy link
Owner

Hey there!

Can you describe exactly how you are using autodot in your case? As of now, Autodot does not have built-in scripts for bootstrapping (this is a planned feature). Hence, I cannot determine which script you are executing to make the symlink.

You can create your own custom script/command for symlinking files the way you want them symlinked by modifying the bootstrap entry in the autodot.json file. This is a perfectly valid use case for autodot!

If you are referring to the bootstrap.exclude.sh script in my dotfiles repository, kindly open an issue over there along with details of how to reproduce it.

Hope this helps!

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

2 participants