Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- Setlocal EnableDelayedExpansion
- set CYGDIR=C:\cygwin64
- set CYGBINDIR=%CYGDIR%\bin
- set PATH=%PATH%;%CYGBINDIR%;%CYGDIR%\usr\local\bin;%CYGDIR%\usr\bin
- cd /d %CYGDIR%\home\%USERNAME%
- if [%1]==[] goto BLANK
- set VAR=
- for /f %%i in ('%CYGBINDIR%\cygpath.exe %*') do set VAR=!VAR! %%i
- echo %VAR%
- start %CYGBINDIR%\mintty.exe -i /bin/emacs.ico -w hide /bin/bash --login -c "/bin/emacsclient --alternate-editor=/bin/emacs %VAR%"
- goto DONE
- :BLANK
- start %CYGBINDIR%\mintty.exe -i /bin/emacs.ico -w hide /bin/bash --login -c "/bin/emacsclient --alternate-editor=/bin/emacs -c"
- goto DONE
- :DONE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement