tylert / dotfiles

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dotfiles

macOS

Occasionally, you will run into a file in your home directory that you aren't allowed to "rm". This is caused by macOS trying to be "helpful". You can fix this on a case-by-case basis by typing:

xattr -d com.apple.quarantine /path/to/file
xattr -d com.apple.macl /path/to/file  # might not be needed

Fix a bunch of them in bulk perhaps using:

find /path/to/directory -exec xattr -d com.apple.quarantine {} \;
find /path/to/directory -exec xattr -d com.apple.macl {} \;  # might not be needed

You can also fix this behaviour permanently for all files using:

sudo defaults write com.apple.LaunchServices LSQuarantine -bool NO
sudo reboot

About

License:GNU General Public License v3.0


Languages

Language:Shell 60.3%Language:Python 32.1%Language:Vim Script 7.6%