ajmalsiddiqui/autodot

symbolic link to file, but not to dir

jslby opened this issue · 1 comments

jslby commented

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

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!