Skip to content

Instantly share code, notes, and snippets.

View dqian96's full-sized avatar

David Qian dqian96

  • Facebook
  • San Francisco, CA
View GitHub Profile
# rsync current directory, keep `--delete` to delete on remote
alias run_rsync='rsync -azP --exclude ".*/" --exclude ".*" --exclude "tmp/" --delete `pwd` [email protected]:~'
run_rsync; fswatch -o . | while read f; do run_rsync; done