Skip to content

Instantly share code, notes, and snippets.

@yatskevich
Forked from timabell/vs-bash-console.bat
Last active February 1, 2023 03:58
Show Gist options
  • Save yatskevich/0450411775373143c0baf5c5c0c5eb3f to your computer and use it in GitHub Desktop.
Save yatskevich/0450411775373143c0baf5c5c0c5eb3f to your computer and use it in GitHub Desktop.
batch script for loading git-bash and the vs tools in the same window
@echo off
%HOMEDRIVE%
cd %HOMEPATH%
call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
echo Use full exe names when running under bash, e.g. "msbuild.exe"
echo Loading bash, you may now use git and msbuild in the same console \o/.
"C:\Program Files\Git\bin\sh.exe" --login -i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment