Re: Set PS1 on login?

2018-06-12 Thread Michael Albinus
yary writes: > ...you can pass information in the TERM environment variable, which is > always copied (there may be a length limit however). You'll still have > to make sure that the remote shell doesn't restrict the TERM variable > to designate a known terminal type. Pass the -t option to ssh if

Re: Set PS1 on login?

2018-06-11 Thread John Collins
Thanks for the fast responses. Apologies, I should have red the man page more carefully. That looks like a good solution. On Mon, Jun 11, 2018, 10:03 AM yary wrote: > Or better see > https://superuser.com/questions/163167/when-sshing-how-can-i-set-an-environment-variable-on-the-server-that-chang

Re: Set PS1 on login?

2018-06-11 Thread yary
Or better see https://superuser.com/questions/163167/when-sshing-how-can-i-set-an-environment-variable-on-the-server-that-changes-f ...you can pass information in the TERM environment variable, which is always copied (there may be a length limit however). You'll still have to make sure that the re

Re: Set PS1 on login?

2018-06-11 Thread yary
You may have an alternate way of setting PS1 at the client, though the server may be configured to ignore it. The ssh man page says this on my system: Additionally, ssh reads ~/.ssh/environment, and adds lines of the format ``VARNAME=vale'' to the environment if the file exists and users are allow

Re: Set PS1 on login?

2018-06-11 Thread Michael Albinus
John Collins writes: > Hello, Hi John, > Happy (mostly) tramp user here that is also very new to it. As someone > working with remote machines that I do not own or control, TRAMPs > inability to handle fancy prompts is highly crippling. It's stated in > the FAQ that "tramp needs a clean recogni

Set PS1 on login?

2018-06-11 Thread John Collins
Hello, Happy (mostly) tramp user here that is also very new to it. As someone working with remote machines that I do not own or control, TRAMPs inability to handle fancy prompts is highly crippling. It's stated in the FAQ that " tramp needs a clean recognizable prompt on the remote host for accura