diff --git a/.bash_profile b/.bash_profile index 12d8608..eb60b1a 100644 --- a/.bash_profile +++ b/.bash_profile @@ -92,6 +92,15 @@ function reset { function ch { local doCleanup=true + if [[ `TASKLIST //FI "STATUS eq running" //FI "IMAGENAME eq devenv.exe" //NH` != "INFO: No tasks are running which match the specified criteria." ]] ; + then + echo "Visual Studio is running. Are you sure you want to continue [Y/N]?" ; + read confirm ; + if [[ $confirm != y* && $confirm != Y* ]] ; + then return 2 ; + fi ; + fi ; + git checkout $1 if [ $? != 0 ] then