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

Re: Using zsh from another shell



On Wed, Mar 26, 2014 at 1:37 AM, Florian Lindner <mailinglists@xxxxxx>wrote:

> Is there a recommended way of using/invoking zsh in this situation?
>

I like to leave the remote host side alone and tweak my ssh command to run
zsh by default if I'm not running a command.  i.e.:

ssh () { if [[ $# = 1 ]]; then set -- -t $1 zsh -l fi if [[ $# = 2 && "$1"
= '-q' ]]; then set -- -tq $2 zsh -l fi command ssh $@}

That way I can "ssh host" or "ssh -q host" to any host and still get zsh as
my default shell.  If I ever get an error that zsh isn't available, I just
run "zsh -t host" and it logs in with the default shell.

..wayne..


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