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

Setup:

  1. edit the ~/.zshrc file on your Mac:
vi ~/.zshrc
  1. Paste in the above content
  2. Save the file
  3. Source the file:
source ~/.zshrc
  1. Setup your cloud service (Google Drive, Dropbox etc.) to back up the ~/SpliceFlat/ to the cloud
  2. Enjoy the flat file structure of your samples on iPad, iPhone etc.

Note:

  • The Splice application on your desktop should always be on
  • you start the process by typing into terminal:

splice

@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