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

Re: conflict of "exec zsh" with scp



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