Permalink
Browse files

Fixed bugs and removed unused vendor alias.

  • Loading branch information...
1 parent c72731a commit 29fb49d670579ea83d680e512cd2bfcca37d8532 @iJoeCollins committed Jun 6, 2013
Showing with 8 additions and 11 deletions.
  1. +8 −11 s3cmd/aliases.zsh
View
@@ -13,25 +13,22 @@ alias s3putencr="s3cmd -e put -r"
## Sync - Incremental Updates ;)##
## Sync HTML ##
-alias s3shtml="s3cmd sync --acl-public --no-preserve --cf-invalidate --exclude \".DS_Store\" --exclude \"*.*\" --add-header=\"Cache-Control:max-age=31536000, public, must-revalidate\" --add-header=\"Content-Encoding:gzip\" --mime-type=\"text/html; charset=utf-8\" --include \"*.html\" publish/"
+alias s3shtml="s3cmd sync --acl-public --no-preserve --cf-invalidate --exclude '.DS_Store' --exclude '*.*' --add-header='Cache-Control:max-age=31536000, public, must-revalidate' --add-header='Content-Encoding:gzip' --mime-type='text/html; charset=utf-8' --include '*.html' publish/"
## Sync CSS ##
-alias s3scss="s3cmd sync --acl-public --no-preserve --cf-invalidate --exclude \".DS_Store\" --exclude \"*.*\" --add-header=\"Cache-Control:max-age=31536000, public\" --add-header=\"Content-Encoding:gzip\" --mime-type=\"text/css\" --include \"*.css\" publish/"
+alias s3scss="s3cmd sync --acl-public --no-preserve --cf-invalidate --exclude '.DS_Store' --exclude '*.*' --add-header='Cache-Control:max-age=31536000, public' --add-header='Content-Encoding:gzip' --mime-type='text/css' --include '*.css' publish/"
## Sync JS ##
-alias s3sjs="s3cmd sync --acl-public --no-preserve --cf-invalidate --exclude \".DS_Store\" --exclude \"*.*\" --add-header=\"Cache-Control:max-age=31536000, public\" --add-header=\"Content-Encoding:gzip\" --mime-type=\"application/javascript\" --include \"*.js\" publish/"
+alias s3sjs="s3cmd sync --acl-public --no-preserve --cf-invalidate --exclude '.DS_Store' --exclude '*.*' --add-header='Cache-Control:max-age=31536000, public' --add-header='Content-Encoding:gzip' --mime-type='application/javascript' --include '*.js' publish/"
-## Sync Vendor JS ##
-alias s3svjs="s3cmd sync --acl-public --no-preserve --cf-invalidate --exclude \".DS_Store\" --exclude \"*.*\" --add-header=\"Cache-Control:max-age=31536000, public\" --add-header=\"Content-Encoding:gzip\" --mime-type=\"application/javascript\" --include \"*.js\" publish/"
-
-## Sync Images and Fonts##
-alias s3simg="s3cmd sync --acl-public --no-preserve --cf-invalidate --exclude \".DS_Store\" --exclude \"*.*\" --add-header=\"Cache-Control:max-age=31536000, public\" --include \"*.png\" --include \"*.jpg\" --include \"*.gif\" --include \"*.ico\" --include \"*.eot\" --include \"*.svg\" --include \"*.ttf\" --include \"*.woff\" --include \"*.otf\" publish/"
+## Sync Images and Fonts ##
+alias s3simg="s3cmd sync --acl-public --no-preserve --cf-invalidate --exclude '.DS_Store' --exclude '*.*' --add-header='Cache-Control:max-age=31536000, public' --include '*.png' --include '*.jpg' --include '*.gif' --include '*.ico' --include '*.eot' --include '*.svg' --include '*.ttf' --include '*.woff' --include '*.otf' publish/"
## Sync JSON ##
-alias s3sjson="s3cmd sync --acl-public --no-preserve --cf-invalidate --exclude \".DS_Store\" --exclude \"*.*\" --add-header=\"Cache-Control:max-age=31536000, public, must-revalidate\" --add-header=\"Content-Encoding:gzip\" --mime-type=\"application/json\" --include \"*.json\" publish/"
+alias s3sjson="s3cmd sync --acl-public --no-preserve --cf-invalidate --exclude '.DS_Store' --exclude '*.*' --add-header='Cache-Control:max-age=31536000, public, must-revalidate' --add-header='Content-Encoding:gzip' --mime-type='application/json' --include '*.json' publish/"
## Sync XML ##
-alias s3sxml="s3cmd sync --acl-public --no-preserve --cf-invalidate --exclude \".DS_Store\" --exclude \"*.*\" --add-header=\"Cache-Control:max-age=31536000, public, must-revalidate\" --add-header=\"Content-Encoding:gzip\" --mime-type=\"application/xml\" --include \"*.xml\" publish/"
+alias s3sxml="s3cmd sync --acl-public --no-preserve --cf-invalidate --exclude '.DS_Store' --exclude '*.*' --add-header='Cache-Control:max-age=31536000, public, must-revalidate' --add-header='Content-Encoding:gzip' --mime-type='application/xml' --include '*.xml' publish/"
## Sync All and Clean Up ##
-alias s3sync="s3cmd sync --acl-public --no-preserve --cf-invalidate --delete-removed --exclude \".DS_Store\" publish/"
+alias s3sync="s3cmd sync --acl-public --no-preserve --cf-invalidate --delete-removed --exclude '.DS_Store' publish/"

0 comments on commit 29fb49d

Please sign in to comment.