This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: how to make cygwin run under shells other than bash


Damien,

Here's the stock Cygwin.bat file:

-==--==--==--==--==--==--==--==--==--==-
@echo off

D:
chdir \cygwin\bin

bash --login -i
-==--==--==--==--==--==--==--==--==--==-

All you have to do to substitute tcsh for BASH is change the last line. The options are slightly different, though (check the man page, of course):

-==--==--==--==--==--==--==--==--==--==-
@echo off

D:
chdir \cygwin\bin

tcsh -l
-==--==--==--==--==--==--==--==--==--==-

However, I find it more straightforward to create a Windows shortcut that launches my shell directly without any BAT file. An easy way to do this is to use right-mouse drag on /cygwin/bin/tcsh.exe (which is probably C:\cygwin\bin\tcsh.exe or D:\cygwin\bin\tcsh.exe or something analogous) to create a copy on the desktop or in the QuickLaunch bar or in your Start menu. When you release the mouse, choose "Create Shortcut(s) Here". Then open the newly created shortcut's Properties dialog and make any changes you like, such as window size and placement, font and cursor preferences, background and foreground colors, etc. (QuickEdit mode is usually a good idea). I like to give the shortcut the Cygwin icon, which is conveniently available in /Cygwin.ico. I recommend setting the "Start in:" field to you Cygwin home directory. In the "Target:" field be sure to add the "-l" (login shell) option.

From now on, you can start a tcsh shell in a new console window by activating this shortcut.

Good luck.

Randall Schulz


At 18:05 2003-07-24, Damien Suttle wrote:
Hi,
my favorite shell is tcsh, but cygwin always starts up in bash. I tried playing with the cygwin.bat file, but i couldn't get it to work. does anyone know how to reconfigure cygwin to start up in other shells?


Thank you.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]