zsh-workers
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: Adam Spiers <adam@spiers.net>,
	zsh workers mailing list <zsh-workers@sunsite.auc.dk>
Subject: Re: bug in FAQ section 1.7?
Date: Mon, 3 Apr 2000 15:05:12 +0000	[thread overview]
Message-ID: <1000403150512.ZM19247@candle.brasslantern.com> (raw)
In-Reply-To: <20000403142912.D32194@thelonious.new.ox.ac.uk>

On Apr 3,  2:29pm, Adam Spiers wrote:
} Subject: bug in FAQ section 1.7?
}
} sect(I don't have root access: how do I make zsh my login shell?)
} 
}   If you have zsh in a subdirectory mytt(bin) of your home directory,
}   put this in .profile:
}               ^^^^^^^^

That only applies if your login shell isn't already zsh.  You can't use
it to switch from one version of zsh to another.

You can either use chsh to set your shell back to bash and then use
the .profile trick to invoke /home/groups/zsh/bin/zsh, or you can use
something like this in .zprofile:

typeset -U zsh
zsh=('' /home/groups/zsh/bin/zsh(|-)*(N))
if [[ $#zsh -ne 1 &&
	( $SHELL != $zsh[-1] || zsh-$ZSH_VERSION < $zsh[-1]:t ) ]] &&
    $zsh[-1] -fc 'exit 0'
then
    export SHELL=$zsh[-1]
    exec $SHELL -$-
fi

The above relies on the fact that zsh's "make install" puts both a `zsh'
and a `zsh-3.1.6-dev-21' into $bindir that are linked to each other.  I
haven't looked to see if /home/groups/zsh/bin/zsh/zsh-3.1.6-dev-21 is in
fact present on sourceforge; if it's not, the above at least won't go
into an infinite loop.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com


  reply	other threads:[~2000-04-03 15:06 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-03 13:29 Adam Spiers
2000-04-03 15:05 ` Bart Schaefer [this message]
2000-04-03 18:13 ` Zefram

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1000403150512.ZM19247@candle.brasslantern.com \
    --to=schaefer@candle.brasslantern.com \
    --cc=adam@spiers.net \
    --cc=zsh-workers@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).