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

Detecting whether one is using SSH



-----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