Skip to content

Instantly share code, notes, and snippets.

@GuiMarthe
Created April 30, 2021 01:50
Show Gist options
  • Save GuiMarthe/0a9b3dd2713fc65b23d77dd005c41a4d to your computer and use it in GitHub Desktop.
Save GuiMarthe/0a9b3dd2713fc65b23d77dd005c41a4d to your computer and use it in GitHub Desktop.
When you copy a file from an external drive onto linux, the files gets weird permissions and gets colored differently by your standard `ls` std outupt. This changes the permission so that it degreens it.
//When you copy a file from an external drive onto linux, the files gets weird permissions and gets colored differently by your standard `ls` std outupt.
//This changes the permissions so that it degreens it.
function degreen() {
chmod -R a-x,o-w,+ $@
}
@GuiMarthe
Copy link
Author

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