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

File change not being picked up? #75

Closed
pitosalas opened this issue Jan 14, 2014 · 2 comments
Closed

File change not being picked up? #75

pitosalas opened this issue Jan 14, 2014 · 2 comments
Assignees

Comments

@pitosalas
Copy link

Here's a scenario:

  • i edited my ~.bash_profile
  • I verify by looking that the copy /Users/pitosalas/.homesick/repos/dotfiles/home/.bash_profile is the old one
  • i do a homeshick check and I get this:
~> homeshick check
     up to date dotfiles
     up to date homeshick
~>
  • I do a homeshick refresh and I get:
    ~> homeshick refresh
            fresh dotfiles
            fresh homeshick
    ~>
  • I would have expected that it would pick up the changed .bash_profile and brought it into homeshick. Can you help me understand? Thank You.
@andsens
Copy link
Owner

andsens commented Jan 14, 2014

Is your $HOME/.bash_profile actually a symlink into your dotfiles repo? If not, homeshick has no way of picking up the change. You should run homeshick link to create those symlinks in your home directory (the one you changed will be overwritten though, so move it into your dotfiles manually). The idea is to never actually have files in your $HOME but symlinks, this way when you edit them, the changes will actually be in the corresponding castle.

p.s.: The homeshick check command will actually not work as you expect because of #46.

@pitosalas
Copy link
Author

Yes, that was indeed the problem. I wonder whether editing .bash_profile with Sublime Text wiped out the symlink. I didn’t think it would do that… Anyway fixed.

Thank you!

Pito

On January 14, 2014 at 6:30:57 PM, Anders Ingemann (notifications@github.com) wrote:

Is your $HOME/.bash_profile actually a symlink into your dotfiles repo? If not, homeshick has no way of picking up the change. You should run homeshick link to create those symlinks in your home directory (the one you changed will be overwritten though, so move it into your dotfiles manually). The idea is to never actually have files in your $HOME but symlinks, this way when you edit them, the changes will actually be in the corresponding castle.

p.s.: The homeshick check command will actually not work as you expect because of #46.


Reply to this email directly or view it on GitHub.

@andsens andsens closed this as completed Jan 15, 2014
@andsens andsens self-assigned this Apr 23, 2014
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