Skip to content

Instantly share code, notes, and snippets.

@codexp
Created August 17, 2017 18:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codexp/bf77cd848ccd136cde39e522c51a2efc to your computer and use it in GitHub Desktop.
Save codexp/bf77cd848ccd136cde39e522c51a2efc to your computer and use it in GitHub Desktop.
PhpStorm starter
#!/bin/bash
P=`find ~/Software/ -name PhpStorm* | sort -r | head -1`
if [ -z "$P" ]; then
echo "PhpStorm installation not found!"
exit 1
fi
$P/bin/phpstorm.sh
@codexp
Copy link
Author

codexp commented Aug 17, 2017

PhpStorm starter

If you update your PhpStorm quite often, you probably recreate your PhpStorm starter every time, maybe via soft symlink or update your bash script.
Well, that's what I have done until I decided to write a script that looks itself for latest installation of PhpStorm and starts it from there.

script installation

If that's what you want, you can simply install this script on your machine:

  • copy this file into your /usr/bin or ~/bin directory
  • update the path that points to your PhpStorm software (by default ~/Software)
  • make sure your PhpStorm installations are stored in that path and start with PhpStorm* (or change it to whatever you want)
  • make this script executable (sudo chmod +x phpstorm)

That's it! Now you can start the latest version of PhpStorm without modifying the script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment