Created
October 1, 2016 08:32
-
-
Save amanaplan/f76563dae1f38ef52b87b26f579abd3e to your computer and use it in GitHub Desktop.
Install Drupal PhpStorm live templates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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