Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: conflict of "exec zsh" with scp
- X-seq: zsh-users 12436
- From: Andy Spiegl <zsh.Andy@xxxxxxxxx>
- To: ZSH User List <zsh-users@xxxxxxxxxx>
- Subject: Re: conflict of "exec zsh" with scp
- Date: Wed, 16 Jan 2008 13:36:25 +0100
- In-reply-to: <20080110212717.GF28203@xxxxxxxxxxxxxxxxxxx>
- Kreccount: 1
- Mail-followup-to: ZSH User List <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20080108220102.GB20640@xxxxxxxxx> <20080110212717.GF28203@xxxxxxxxxxxxxxxxxxx>
Vincent Lefevre wrote:
> > 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.
VERY good idea! As .bash_profile is only executed for login shells
I don't even need the test for an interactive shell anymore.
if [[ "$-" == *i* ]; then ...
Thanks,
Andy.
--
Some say time is the fire in which we burn -- Dr. Soren
Messages sorted by:
Reverse Date,
Date,
Thread,
Author