Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Using zsh from another shell
- X-seq: zsh-users 18683
- From: Wayne Davison <wayne@xxxxxxxxxxxxxxx>
- To: Florian Lindner <mailinglists@xxxxxx>
- Subject: Re: Using zsh from another shell
- Date: Thu, 27 Mar 2014 10:47:33 -0700
- Cc: Zsh list <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=thedavisons.net; h= mime-version:in-reply-to:references:from:date:message-id:subject :to:cc:content-type; s=thedavisons.net; bh=UXpcZzoI6C/NaQ9FV9KQS aCIMdo=; b=HYBK7JJbeZfAl0kFmgCtOaCMAsgoz1LEMUb5b28O9n5r5TrkshS/V 7wHmPdZ6KaWR/FjmRlKDOlJd7UhlDWAIv741nCN+Ljm1tAnGnvqGp7i3Fn4/GAJ6 lnJUPFUC3WUa9nOUxT/zP8x9XIoFjaCnBXDYLPGxnQnt0UNYHo0YJE=
- In-reply-to: <7216394b674964d82cdc81f881731f4c@xgm.de>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <7216394b674964d82cdc81f881731f4c@xgm.de>
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