Wednesday, March 12, 2008

Launching Cygwin from Cygwin

Have you wondered how to launch a cygwin shell in a window of its own from a cygwin shell?

Set this alias in your .bashrc.

alias cygwin='cmd /C start c:/cygwin/cygwin.bat'

If you have customized cygwin.bat as mentioned in http://cygwin.com/ml/cygwin/2004-03/msg00006.html, then the following works better.

alias cygwin='cmd /C start c:/cygwin/cygwin.bat "$PWD"'


Replace c:/cygwin in the above aliases with your installation specific location.

No comments: