Skip to content

Instantly share code, notes, and snippets.

@dkozar
Created November 1, 2019 00:09
Show Gist options
  • Save dkozar/84cd63cf0046cd4ac74d3c2463f42acb to your computer and use it in GitHub Desktop.
Save dkozar/84cd63cf0046cd4ac74d3c2463f42acb to your computer and use it in GitHub Desktop.
"Flattens" the structure of files in ~/Splice/ folder to ~/SpliceFlat/ folder
# MacOS!
# "Flattens" the structure of files in ~/Splice/ folder to ~/SpliceFlat/ folder
# Copyright 2019 by Danko Kozar
alias splice-flatten="find ~/Splice/ -mindepth 2 -type f -exec rsync --update --quiet '{}' ~/SpliceFlat/ ';'"
splice () {
echo "watching for Splice folder changes"
splice-flatten
while true; do sleep 5; echo "... checking..."; splice-flatten; done
}
@dkozar
Copy link
Author

dkozar commented Nov 1, 2019

checking

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