Reputation: 436
I have used this "ea" alias with previous versions of PhpStorm but since the change to "PhpStorm 2" it doesn't work anymore, any suggestions?
My current setting is:
alias phpstorm="PhpStorm 2"
alias ea='open -a phpstorm ~/ .aliases'
The terminal output is:
// Calling the alias
ea
// Output error
Unable to find application named 'phpstorm'
P.S. Even if I escape the name like this, it doesn't find the application:
alias phpstorm="PhpStorm\ 2"
Upvotes: 0
Views: 411
Reputation: 436
This works now for me :)
alias ps2="open -a PhpStorm\ 2"
alias ea='ps2 .aliases'
Upvotes: 0
Reputation: 590
Try: open -a application_name
Keep in mind that 'PhpStorm 2' is not a valid binary in your PATH. With '-a' you are telling to 'open' look for an application with that name, which 'Phpstorm 2' is.
Upvotes: 1