install.bat 612 B

123456789101112131415161718192021222324252627282930313233343536
  1. @echo off
  2. set TITLE=sdbarker's configs Installer
  3. set SEP=---------------------------
  4. echo.
  5. echo %TITLE%
  6. echo %SEP%
  7. echo.
  8. SET /p install_vimrc="Install .vimrc (y/n)? "
  9. IF "%install_vimrc%" == "y" (
  10. CALL :InstallVimrc
  11. )
  12. SET /p install_gitconfig="Install .gitconfig (y/n)? "
  13. IF "%install_gitconfig%" == "y" (
  14. CALL :InstallGitconfig
  15. )
  16. GOTO :End
  17. :InstallVimrc
  18. echo Installing .vimrc...
  19. xcopy /S .\vimrc\* %USERPROFILE%\
  20. echo Done.
  21. echo.
  22. GOTO :EOF
  23. :InstallGitconfig
  24. echo Installing .gitconfig...
  25. xcopy /S .\gitconfig\* %USERPROFILE%
  26. echo Done.
  27. echo.
  28. GOTO :EOF
  29. :End