Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Detecting whether one is using SSH
- X-seq: zsh-users 14571
- From: Renà 'Necoro' Neumann <lists@xxxxxxxxx>
- To: Zsh Users <zsh-users@xxxxxxx>
- Subject: Detecting whether one is using SSH
- Date: Tue, 17 Nov 2009 01:45:21 +0100
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I'm just wondering if it is possible to detect whether one is logged in
via SSH. I want to use it to switch to a different prompt color in that
case.
If there is no builtin way: How could one pass an option to the zsh
invocation to notify it to change colors? (As my current alias is
already: rem='ssh -t name@host "zsh -l"'
it would not hurt to add another option to that call)
Thanks,
RenÃ
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAksB8iEACgkQ4UOg/zhYFuCz1gCfZyfNTpMBq4VQxy9CSwkRT/yV
rkMAn2Lh6xtlLf8c+cT5P0PfOt5l6kYB
=cMxW
-----END PGP SIGNATURE-----
Messages sorted by:
Reverse Date,
Date,
Thread,
Author