Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: I get tcsh at login; want zsh
- X-seq: zsh-users 10524
- From: "Christopher Browne" <cbbrowne@xxxxxxxxx>
- To: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- Subject: Re: I get tcsh at login; want zsh
- Date: Sun, 16 Jul 2006 23:13:17 -0400
- Cc: zsh-users@xxxxxxxxxx
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=T0TIWnLCv2f67yDhZUFjLEA/tX3MrDY3eEu9YeRfS2SHXp1fq4mQUq3JAhfwVCwBEs0oISsTacWY/81mwvpKgFkMibMFvYU40Xb4l4tovxftTDtFNlWPbZyXvD8hEOwkAVZIJirmEAfFySWr/mIrYnSFDrRGXASxd+qDgczEB7g=
- In-reply-to: <237967ef0607161709t21c61aafr2dfbf6f447d8ce5a@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20060716232837.GA8923@xxxxxxxxx> <237967ef0607161709t21c61aafr2dfbf6f447d8ce5a@xxxxxxxxxxxxxx>
On 7/16/06, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> What do I need to do to be able to log directly into and directly out
> of zsh?
Check what startup files are used by tcsh and put 'exec zsh' in it.
While easy to invoke, that mayn't be the wisest approach.
Should there not be a path to zsh, for some reason, you might discover
yourself unable to login anymore.
I'd be *much* more inclined to run some test for existence first, and,
better still, to test that zsh actually works before committing to
"exec zsh"
Thus, a logic like...
if -e /usr/bin/zsh; then
if /usr/bin/zsh "invoke something that should return true"; then
exec /usr/bin/zsh
fi
fi
Perhaps that should involve a search for where zsh is...
--
http://www3.sympatico.ca/cbbrowne/linux.html
Oddly enough, this is completely standard behaviour for shells. This
is a roundabout way of saying `don't use combined chains of `&&'s and
`||'s unless you think Gödel's theorem is for sissies'.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author