Skip to content

Instantly share code, notes, and snippets.

@codexp

codexp/phpstorm

Created Aug 17, 2017
Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

@codexp 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
You can’t perform that action at this time.