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

Re: allow zsh to source a script and then become interactive



On Apr 14, 12:55pm, Anthony Fletcher wrote:
}
} 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 should do it:

    zsh -is <<<"source $aparticularfile </dev/tty && exec </dev/tty"



Messages sorted by: Reverse Date, Date, Thread, Author