Last active
September 11, 2017 22:27
-
-
Save jmosbech/9364440 to your computer and use it in GitHub Desktop.
Windows command line shortcut to WebStorm. Clone, add to path, celebrate!
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 | |
# find newest webstorm install | |
WS=`find /C/Program\ Files\ \(x86\)/JetBrains/*/bin/webstorm.exe -type f -printf '%T@ %p\n' | sort -r | sed 's/^[^ ]* //' | head -n 1` | |
# open current dir | |
DIR=`pwd` | |
`"$WS" "$DIR"` & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
JFYI: if you are not on Toolbox, you may find path to executable like so:
just replace reg stuff to path and you are ready to go, idea behind is that it will work on clean setup and does not require bash installed