Skip to content

Instantly share code, notes, and snippets.

@ERPedersen
Created May 28, 2020 08:55
Show Gist options
  • Save ERPedersen/3932009d7573c1e3f6cdbca8dfd456a5 to your computer and use it in GitHub Desktop.
Save ERPedersen/3932009d7573c1e3f6cdbca8dfd456a5 to your computer and use it in GitHub Desktop.
Open PHPStorm from terminal (MacOS)
# Opens the provided directory in PHPStorm. If PHPStorm is not currently running
# the application will be opened. If PHPStorm is already running, the provided
# directory will be opened in a new project window.
#
# Examples:
# Relative path: pstorm .
# Absolute path: pstorm ~/Projects/my-project
function pstorm () {
open -a PhpStorm $1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment