Skip to content

Instantly share code, notes, and snippets.

@chris-martin
Last active December 22, 2015 22:48
Show Gist options
  • Save chris-martin/6542047 to your computer and use it in GitHub Desktop.
Save chris-martin/6542047 to your computer and use it in GitHub Desktop.

To make all future files world-readable by default, add this line to ~/.bashrc:

umask 022

Then, to make everything under ~/foo world-readable:

source ~/.bashrc
cd ~/foo
find . -type f -exec chmod a+r {} \;
find . -type d -exec chmod a+x {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment