Created
June 20, 2012 14:49
-
-
Save markrendle/2960254 to your computer and use it in GitHub Desktop.
Shell script to launch Visual Studio with either named sln or most recently modified
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
if [ -n "$1" ]; then | |
file=$1 | |
else | |
file=( $(ls -xt *.sln | head -n1)) | |
fi | |
if [ -z "$file" ]; then | |
echo "No solution found." | |
exit 1 | |
fi | |
/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio\ 11.0/Common7/IDE/devenv.exe "$file" & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Also, add:
alias vs=[put path here]/vs.sh
to your ~/.bashrc for convenience.