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

Re: conflict of "exec zsh" with scp



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