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

I lost my castle #106

Closed
xr09 opened this issue Aug 8, 2014 · 3 comments
Closed

I lost my castle #106

xr09 opened this issue Aug 8, 2014 · 3 comments

Comments

@xr09
Copy link

xr09 commented Aug 8, 2014

Maybe I'm missing some obvious issue here but let me just tell my story:

I created a new castle:
homeshick generate vim
I tracked my vim folder
homeshick track vim .vim/
I made a mess, wanted to start over like before homeshick, my first instint was:
rm -rfv ~/.homesick/repos/vim
Great... now all I got are null symlinks in ~/.vim folder.

Totally my bad I know, but maybe using hardlinks instead of symlinks, or a new "untrack" command could highlight the fact that the process of "untracking" unpushed castles is dangerous and should be done with extreme care.

Any thoughts on this?

@andsens
Copy link
Owner

andsens commented Aug 9, 2014

Any thoughts on this?

Yes, and this might sound a bit harsh... read the manual.

homeshick track moves your files into the castle and creates symlinks in their place. An untrack command will eventually be implemented, but it wont remove any files, it'll just move them back to their original position.

homeshick is a tool coded in the spirit of how most other unix tools work. rm doesn't move things to the trash - it deletes them - and mv doesn't prompt you before it overwrites destination files. It's just the way the cookie crumbles :-)

@andsens andsens closed this as completed Aug 9, 2014
@xr09
Copy link
Author

xr09 commented Aug 12, 2014

Looking forward to that untrack command, thank you very much for this project. 👍

@mrmachine
Copy link

What about a hard link option? Would that interfere with homesick's ability to recognise files that are not linked? In general, I think I'd prefer hard links because:

a) some and backup tools tools don't follow symlinks, they back them up.
b) accidentally tracking a symlink is annoying

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