delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/04/07/23:13:40

X-Spam-Check-By: sourceware.org
Date: Fri, 7 Apr 2006 23:13:29 -0400 (EDT)
From: Igor Peshansky <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Murali Suriar <m DOT suriar AT gmail DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Changing default remote shell under Cygwin
In-Reply-To: <loom.20060408T044317-896@post.gmane.org>
Message-ID: <Pine.GSO.4.63.0604072311150.20780@access1.cims.nyu.edu>
References: <loom DOT 20060408T044317-896 AT post DOT gmane DOT org>
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Sat, 8 Apr 2006, Murali Suriar wrote:

> Igor Peshansky <pechtcha <at> cs.nyu.edu> writes:
>
> > On Sat, 8 Apr 2006, Murali Suriar wrote:
> >
> > > I was wondering what configuration file I need to edit in order to
> > > make ZSH to default shell on login?
> >
> > Change the user's shell in /etc/passwd.  Make sure you use something
> > that keeps the LF line endings (i.e., not notepad).
> > HTH,
>
> It does indeed. Thanks very much. On a related note, on a university
> system where chsh and ypchsh are disabled, I take it there's no way for
> me to change my login shell to ZSH? I'd have to start a BASH instance
> and drop into ZSH from there?

Not Cygwin-specific at all, but you can create a ~/.bash_profile that
contains the following one line:

exec -l /usr/bin/zsh

For more help, read the startup section of the bash manpage.
HTH,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha AT cs DOT nyu DOT edu | igor AT watson DOT ibm DOT com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019