Advertisement
Guest User

Untitled

a guest
Aug 29th, 2016
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. @echo off
  2. Setlocal EnableDelayedExpansion
  3.  
  4. set CYGDIR=C:\cygwin64
  5. set CYGBINDIR=%CYGDIR%\bin
  6. set PATH=%PATH%;%CYGBINDIR%;%CYGDIR%\usr\local\bin;%CYGDIR%\usr\bin
  7.  
  8. cd /d %CYGDIR%\home\%USERNAME%
  9.  
  10. if [%1]==[] goto BLANK
  11.  
  12. set VAR=
  13. for /f %%i in ('%CYGBINDIR%\cygpath.exe %*') do set VAR=!VAR! %%i
  14.  
  15. echo %VAR%
  16.  
  17. start %CYGBINDIR%\mintty.exe -i /bin/emacs.ico -w hide /bin/bash --login -c "/bin/emacsclient --alternate-editor=/bin/emacs %VAR%"
  18.  
  19. goto DONE
  20.  
  21. :BLANK
  22.  
  23. start %CYGBINDIR%\mintty.exe -i /bin/emacs.ico -w hide /bin/bash --login -c "/bin/emacsclient --alternate-editor=/bin/emacs -c"
  24.  
  25. goto DONE
  26.  
  27. :DONE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement