Created
August 17, 2017 18:23
PhpStorm starter
This file contains hidden or 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 | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
/usr/bin
or~/bin
directory~/Software
)PhpStorm*
(or change it to whatever you want)sudo chmod +x phpstorm
)That's it! Now you can start the latest version of PhpStorm without modifying the script.