Skip to content

Instantly share code, notes, and snippets.

@amanaplan
Created October 1, 2016 08:32
Show Gist options
  • Save amanaplan/f76563dae1f38ef52b87b26f579abd3e to your computer and use it in GitHub Desktop.
Save amanaplan/f76563dae1f38ef52b87b26f579abd3e to your computer and use it in GitHub Desktop.
Install Drupal PhpStorm live templates
#!/bin/bash
# Installs Drupal live templates for PhpStorm.
# After successfully executing, please restart PhpStorm.
#
# Requires Git and PHP CLI to be installed and available.
#
# Adapted from project instructions, available at
# https://www.drupal.org/project/phpstorm_templates
mkdir -p ~/.config
cd ~/.config
if [ ! -d "~/.config/WebIdeConfigManager" ]; then
git clone https://github.com/Sweetchuck/WebIdeConfigManager.git
cd WebIdeConfigManager
else
cd WebIdeConfigManager
git pull
fi
cd ConfigHome
if [ ! -d "~/.config/WebIdeConfigManager/ConfigHome/drupal" ]; then
git clone --recursive --branch 7.x-1.x http://git.drupal.org/project/phpstorm_templates.git drupal
else
cd drupal
git pull
fi
cd ~/.config/WebIdeConfigManager
./WebIdeConfigManager.php push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment