Advertisement
Guest User

Untitled

a guest
Jan 31st, 2015
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. @echo off
  2. set EDITOR=vi
  3. set VISUAL=vi
  4. REM shamelessly copied from git://github.com/justsoso8/dotfile.git
  5. REM mintty installed which supports chinese
  6. REM =======================================
  7. @echo off
  8. rem find cygwin roo directory one by one
  9. rem disk c -> disk d -> disk e
  10.  
  11. :CYGWIN_C
  12. if not exist c:\cygwin goto CYGWIN_D
  13. set _cygwinroot=c:\cygwin
  14. goto HAVECYGWIN
  15.  
  16. :CYGWIN_D
  17. if not exist d:\cygwin goto CYGWIN_E
  18. set _cygwinroot=d:\cygwin
  19. goto HAVECYGWIN
  20.  
  21. :CYGWIN_E
  22. if not exist c:\cygwin64 goto CYGWIN_F
  23. set _cygwinroot=c:\cygwin64
  24. goto HAVECYGWIN
  25.  
  26. :CYGWIN_F
  27. if not exist d:\cygwin64 goto NOCYGWIN
  28. set _cygwinroot=d:\cygwin64
  29. goto HAVECYGWIN
  30.  
  31. :NOCYGWIN
  32. echo no cygwin installation found on disk C/D/E/F
  33. pause
  34. goto EOF
  35.  
  36. :HAVECYGWIN
  37.  
  38. chdir %_cygwinroot%\bin
  39. set _termapp=%_cygwinroot%\bin\mintty.exe
  40. start %_termapp% -w full /bin/bash --login -i
  41. :EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement