Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
conflict of "exec zsh" with scp
- X-seq: zsh-users 12398
- From: Andy Spiegl <zsh.Andy@xxxxxxxxx>
- To: ZSH User List <zsh-users@xxxxxxxxxx>
- Subject: conflict of "exec zsh" with scp
- Date: Tue, 8 Jan 2008 23:01:02 +0100
- Kreccount: 1
- Mail-followup-to: ZSH User List <zsh-users@xxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
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
(the environment variable is coming from .ssh/authorized_keys)
This works great but now scp doesn't work anymore:
lama:~>scp foo otherhost:
stty: standard input: Invalid argument
[1] 19108 exit 1 scp -C foo otherhost:
Any idea how to distinguish my ssh-connects from scp-connects in .bashrc?
Thanks a lot,
Andy.
--
"Good literature is about Love and War."
"Junk fiction is about Sex and Violence."
Messages sorted by:
Reverse Date,
Date,
Thread,
Author