zsh-workers
 help / color / mirror / code / Atom feed
* Re: allow zsh to source a script and then become interactive
       [not found] <20170414165548.GA13756__8716.79648194022$1492189045$gmane$org@teapot.bifb.org>
@ 2017-04-14 17:24 ` Christian Neukirchen
  0 siblings, 0 replies; only message in thread
From: Christian Neukirchen @ 2017-04-14 17:24 UTC (permalink / raw)
  To: zsh-workers

Anthony Fletcher <anthony@bifb.org> writes:

> This is an oldie but goodie that I don't have a solution to. How can I
> invoke a zsh that sources a particular file (not the standard start up
> files) and then become interactive, preserving functions, etc?
>
> This is akin to the ksh invocation:
>
>  ENV=startup ksh
>
> or bash's
>
>  bash --rcfile startup
>
> One solution was covered in 2005 by Bart: see
> http://www.zsh.org/mla/users/2005/msg00600.html However this only works
> if you can change the .zshrc file.
>
> Another alternative is to create a custom .zshrc in a temporary
> directory and set the environment variable ZDOTDIR. But this is a little
> clunky.
>
> I look after an increasing disparate collection of systems and I'd
> like to launch a customised zsh on a remote system without changing
> anything ahead of time.

An interesting alternative could be to start an interactive zsh from
anywhere, e.g. rc(1) has `. -i /dev/tty`... I'm not sure how many
changes this would require to zsh architecture.

-- 
Christian Neukirchen  <chneukirchen@gmail.com>  http://chneukirchen.org


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-04-14 17:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20170414165548.GA13756__8716.79648194022$1492189045$gmane$org@teapot.bifb.org>
2017-04-14 17:24 ` allow zsh to source a script and then become interactive Christian Neukirchen

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).