Created
November 1, 2019 00:09
-
-
Save dkozar/84cd63cf0046cd4ac74d3c2463f42acb to your computer and use it in GitHub Desktop.
"Flattens" the structure of files in ~/Splice/ folder to ~/SpliceFlat/ folder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 | |
} |
Author
dkozar
commented
Nov 1, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment