Update permission aliases

Jonathan Hodgson 7 years ago
parent 48a9b3b7b8
commit dca6d0cf38
  1. 6
      config/oh-my-zsh/aliases.zsh

@ -1,8 +1,8 @@
# These alow me to easily set the file and folder permissions for a wordpress instilation. # These alow me to easily set the file and folder permissions for a wordpress instilation.
alias folder-perms='find . -type d -not -path "./.git/*" -not -path "./.git" -exec chmod 775 {} \;' alias folder-perms='find . -type d -not -path "./.git/*" -not -path "./.git" -not -perm 775 -exec chmod 775 {} \;'
alias file-perms='find . -type f -not -path "./.git/*" -not -path "./.git" -exec chmod 664 {} \;' alias file-perms='find . -type f -not -path "./.git/*" -not -path "./.git" -not -perm 664 -exec chmod 664 {} \;'
alias wp-perms='folder-perms; file-perms' alias wp-perms='folder-perms; file-perms'
alias magentoPerms='cd ${PWD%/public_html*}/public_html;sudo chown -R jonathan:http .; folder-perms; file-perms; chmod +x bin/magento; cd -' alias magentoPerms='cd ${PWD%/public_html*}/public_html;sudo chown -R jonathan:http .; folder-perms; file-perms; chmod +x bin/*; cd -'
alias upgr='magento setup:upgrade && magento setup:di:compile && magentoPerms' alias upgr='magento setup:upgrade && magento setup:di:compile && magentoPerms'
# #
# Make ls add Indicator#s to file names and colour the output # Make ls add Indicator#s to file names and colour the output

Loading…
Cancel
Save