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

[FEATURE] - Save the last known state to .dots for a clean symlink removal #51

Closed
oknozor opened this issue Oct 22, 2020 · 0 comments
Closed
Assignees
Labels
enhancement New feature or request

Comments

@oknozor
Copy link
Owner

oknozor commented Oct 22, 2020

Let's say we have the following entry installed :

sway = { source = "sway", target = ".config/sway" }

This is linked like this :

# $HOME/.config
sway -> /home/user/dotfiles/.dots/sway

Now we change our sway entry to :

i3 = { source = "i3", target = ".config/i3" }

And run bombadil link.

Doing this we are left with a dangling $HOME/.config/sway symlink.

Since it's not possible to find symlinks from the target file, one way to solve this would be to add a .dots/.state.toml file on
linking. This files would contain a Map(source -> target). Allowing to check for link to removes, even if the config as changed.

@oknozor oknozor added the enhancement New feature or request label Oct 22, 2020
@oknozor oknozor self-assigned this Oct 22, 2020
@oknozor oknozor closed this as completed Oct 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant