Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- set EDITOR=vi
- set VISUAL=vi
- REM shamelessly copied from git://github.com/justsoso8/dotfile.git
- REM mintty installed which supports chinese
- REM =======================================
- @echo off
- rem find cygwin roo directory one by one
- rem disk c -> disk d -> disk e
- :CYGWIN_C
- if not exist c:\cygwin goto CYGWIN_D
- set _cygwinroot=c:\cygwin
- goto HAVECYGWIN
- :CYGWIN_D
- if not exist d:\cygwin goto CYGWIN_E
- set _cygwinroot=d:\cygwin
- goto HAVECYGWIN
- :CYGWIN_E
- if not exist c:\cygwin64 goto CYGWIN_F
- set _cygwinroot=c:\cygwin64
- goto HAVECYGWIN
- :CYGWIN_F
- if not exist d:\cygwin64 goto NOCYGWIN
- set _cygwinroot=d:\cygwin64
- goto HAVECYGWIN
- :NOCYGWIN
- echo no cygwin installation found on disk C/D/E/F
- pause
- goto EOF
- :HAVECYGWIN
- chdir %_cygwinroot%\bin
- set _termapp=%_cygwinroot%\bin\mintty.exe
- start %_termapp% -w full /bin/bash --login -i
- :EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement