Skip to content

Symlinked directories should be protected against accidental writes #147

Description

@jasoncodes

My freshrc contains the following:

fresh vim/colors --file=~/.vim/colors/

This builds ~/.fresh/build/vim-colors and symlinks it to ~/.vim/colors. As a result, any new files created in ~/.vim/colors are silently lost when fresh is next ran. We should make these directories read only to prevent accidental loss.

Care should be taken to test the cleanup code for ~/.fresh/build.old. Automated tests for this part is probably not required unless existing code fails.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions