Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: I get tcsh at login; want zsh



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