Skip to content

Instantly share code, notes, and snippets.

@webflo
Last active January 29, 2017 18:36
Show Gist options
  • Save webflo/0bad4c45f039092c58a32d59abd630a7 to your computer and use it in GitHub Desktop.
Save webflo/0bad4c45f039092c58a32d59abd630a7 to your computer and use it in GitHub Desktop.
#!/bin/bash
filepath=$@
if [ ${filepath: -1} = ":" ]; then
filepath="${filepath%?}"
fi
$HOME/bin/appswitch -a PhpStorm
$HOME/bin/pstorm $filepath
# Appswitch: https://sabi.net/nriley/software/#appswitch
# iTerm: Run commannd ... /Users/fweber/bin/phpstorm \1:\2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment