Category: Mac

How to setup WPCS with Visual Studio Code on Mac

Step 1. Install Composer

Download composer binary file from getcomposer.org website by running the following command. It will create a composer.phar file in the current directory.

curl -sS https://getcomposer.org/installer | php

Now, copy this composer.phar file under bin directory to make available anywhere in the system. Also, set the execute permission on file. I have changed the filename from composer.phar to composer for the easy use.

sudo mv composer.phar /usr/local/bin/composer
chmod +x /usr/local/bin/composer

Run composer command on the command prompt. This will provide you composer version details along with options available with composer command.

composer

Upgrade PHP Composer

The PHP composer provides a command-line option (self-update) to upgrade itself. You can simply run below command from the terminal to upgrade compose on your macOS.

sudo composer self-update

How to Remove .DS_Store on Mac

  1. Open your Terminal
  2. In the command line, type: cd
  3. Drag and drop the folder you wish to delete .DS_Store files from in this case our theme folder. Press enter.
  4. Finally, in the command line, type:
    find . -name '.DS_Store' -type f -delete

    Press enter.