Skip to content

Instantly share code, notes, and snippets.

@muhamed-didovic
Created June 8, 2021 14:19
Show Gist options
  • Save muhamed-didovic/aa04d269bbeb573f6e5692ed834d79e0 to your computer and use it in GitHub Desktop.
Save muhamed-didovic/aa04d269bbeb573f6e5692ed834d79e0 to your computer and use it in GitHub Desktop.
kopiraj(){
rsync -avh \
--exclude='markup/node_modules/' \
--exclude='wp/public/wp-content/themes/*/node_modules/' \
--exclude='wordpress/public/wp-content/themes/*/node_modules/' \
--exclude='wp/public/wp-content/uploads/assets/' \
--exclude='.env' \
--exclude='.idea/' \
--exclude='wp/vendor/' \
--exclude='wordpress/vendor/' \
--exclude='.git/' \
$1/ $2/ --delete-after
}
salji(){
kopiraj /Users/goran/projects/$1 /Users/goran/Desktop/pj/$1
}
primaj(){
kopiraj /Users/goran/Desktop/pj/$1 /Users/goran/projects/$1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment