This file contains 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/sh | |
# grab the latest version of IDEA | |
IDEA=`ls -1dt /Applications/IntelliJ\ * | head -n1` | |
if [ -f "$1" ]; then # first, try any filename provided | |
open -a "$IDEA" "$1" | |
elif [ -d ".idea" ]; then # second, try the .idea directory | |
open -a "$IDEA" "." | |
elif [ -f *.ipr ]; then # third, try any IDEA project files |
This file contains 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
[17:05] node-test$ node switch.js for the fail | |
fail | |
[17:05] node-test$ node switch.js for the lose | |
lose | |
[17:05] node-test$ node switch.js bleep blah | |
blah | |
[17:05] node-test$ node switch.js for the win | |
win |