Hacker News new | ask | show | jobs
by jftuga 26 days ago
I have a "flock" script that locks downs files that I do not want changed except for when I persoanlly "funlock" it.

It does the last 4 commands:

    cd ~/Library
    rm -rf IntelligencePlatform
    touch IntelligencePlatform
    xattr -w com.flock.mode 444 IntelligencePlatform
    chown root:wheel IntelligencePlatform
    chmod 444 IntelligencePlatform
    chflags schg IntelligencePlatform
1 comments

Good call; just applied this myself. What other files do you lock down?

    .gitconfig
    .claude/settings.json (same for codex)
    .zprofile and .zshrc
    .ssh/config and id_ed25519*