[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PS1 has ruined line wrap

From: Jonathan Reed
Subject: PS1 has ruined line wrap
Date: Thu, 25 Nov 2010 15:38:04 -0500

I was using this as my ps1
PS1='address@hidden;31m\]\h\[\e[0m\]:$PWD]\$ '

But I wanted to label the title of my xterm windows with the hostname of
system Im logged into. So I added the following
PS1='address@hidden;45m\]\h\[\e[0m\] $PWD]\e]2;@ \H\a\$ '

It works great except for it rewrites the current line if I write text past
the current window size (regardless of the window size).
filenameERVERNAME:/home/jreed]$ cat /a/really/long_fi

Any suggestions?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]