Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: conflict of "exec zsh" with scp
- X-seq: zsh-users 12416
- From: "Anonymous bin ich" <ichbinanon@xxxxxxxxx>
- To: "ZSH User List" <zsh-users@xxxxxxxxxx>
- Subject: Re: conflict of "exec zsh" with scp
- Date: Thu, 10 Jan 2008 23:10:48 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=fZjq4dv3+m/5u/SWWK4YneMMrTmhOhhiTnQD6kl4fiE=; b=dyeiPeALoWbO22n/tvwIFg1wsx40W6TbW3MlNeOsXDCaXxJQIS7CTYA6jyCkBUOg+qAjzkBeVgocBMfcIPhytF9BzRB8sPZKPHj+UPa8+GdtRGg782I5pYTtbIb/1OSj6zFCGrbEkmMrOd0EfOTd+QkxstuReENiV3hY9LZYD/A=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ZG3lFGediXit2XdB7Q+jsZtMFqFRbgc9QK9l0y2WruqnlLHiEmgGtFgqvOrx7+uVdw3g7w0yfyoA8c0k5V57pDgYgK8AydrVGrZ6nbVFFWTgmgdspItzx7KrEhxCB824m+k5QqXNxfmxW40Ph+YfAeymuSmFy5jAG4Rz+/OTR+o=
- In-reply-to: <20080110212717.GF28203@xxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20080108220102.GB20640@xxxxxxxxx> <20080110212717.GF28203@xxxxxxxxxxxxxxxxxxx>
You might be able to rectify problem once and for all by having
something like this before your .bashrc:
if [ -n "$(echo $- | grep i)" ]; then
if [[ "$REALUSER" == "Andy Spiegl" ]]; then
which zsh >/dev/null 2>&1 && exec zsh -l
fi
fi
On Jan 10, 2008 10:27 PM, Vincent Lefevre <vincent@xxxxxxxxxx> wrote:
> On 2008-01-08 23:01:02 +0100, Andy Spiegl wrote:
> > At work all my colleagues prefer bash (I couldn't convince them yet *sigh*).
> > But I can't live without zsh anymore. So I put the following into .bashrc:
> >
> > if [[ "$REALUSER" == "Andy Spiegl" ]]; then
> > which zsh >/dev/null 2>&1 && exec zsh -l
> > fi
>
> It's better to put that in your .bash_profile (instead of .bashrc) so
> that it is executed only by login shells. This is what I do.
>
> --
> Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <http://www.vinc17.org/>
> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
> Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)
>
--
Regards,
Messages sorted by:
Reverse Date,
Date,
Thread,
Author