[TUHS] shell PS1/PS2 which survive cut-paste

Don Hopkins don at DonHopkins.com
Sun Dec 17 23:12:33 AEST 2017


I just put a newline at the end of my prompt, so the command has the whole next line to itself and there’s no prompt to get in the way of copying and pasting.

-Don


> On 16 Dec 2017, at 18:42, Derek Fawcus <dfawcus+lists-tuhs at employees.org> wrote:
> 
> On Wed, Dec 06, 2017 at 11:22:52AM +1000, George Michaelson wrote:
>> I tried a long time ago to set PS1 and PS2 to character sequences
>> which would permit cut-paste to work. I failed, but I didn't try very
>> hard.
> 
> h=spuggy$; ssh copper
> h=copper$;
> h=copper$; pwd
> /usr/home/derek
> h=copper$; h=copper$; pwd
> /usr/home/derek
> h=copper$;
> 
> 
> .pdf



More information about the TUHS mailing list