Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: conflict of "exec zsh" with scp
- X-seq: zsh-users 12400
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: ZSH User List <zsh-users@xxxxxxxxxx>
- Subject: Re: conflict of "exec zsh" with scp
- Date: Tue, 08 Jan 2008 21:01:51 -0800
- In-reply-to: <20080108220102.GB20640@xxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20080108220102.GB20640@xxxxxxxxx>
On Jan 8, 11:01pm, Andy Spiegl wrote:
}
} 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
The first thing I'd try is changing from
exec zsh -l
to
exec zsh -$- "$@"
However, if want you really want is to NOT exec zsh for scp, then it may
be sufficient to change the test to:
[[ ! -t 0 && "$REALUSER" == "Andy Spiegl" ]]
Alternately, to implement Casper's suggestion:
[[ "$-" != *i* && "$REALUSER" == "Andy Spiegl" ]]
Messages sorted by:
Reverse Date,
Date,
Thread,
Author