On Sat, 23 Jan 2016 21:11:46 +0100
Adam Borowski <kilobyte@???> wrote:
> On Sat, Jan 23, 2016 at 08:10:31PM +0100, Florian Zieboll wrote:
>
> > I had played a bit with the tiling and highly (GUI) configurable
> > "Terminator" but was bounced back to xterm very quickly due to its
> > footprint and wrote the following secremote.sh script. It has not
> > been tested with more than the few defined colors but I am not
> > aware of any limitations other than that of the X11 palette.
>
> This approach breaks the moment you ssh from an existing terminal,
> especially if you ssh from box 2 to box 3.
>
> I'd instead recommend setting PS1 in .bashrc on those machines to
> something distinct.
Nice that this also works Xless / on the console :) Although I am not
too much into working from "behind proxies", I had a closer look at the
PS1 strings Didier posted in this thread on Friday. I could find the
backslash escaped special /characters/ documented in the bash(1)
manpage. A web search for the text formatting (colors and style) of
course returned a lot of results, including several "PS1 generators",
some "Extreme Power Prompt" examples [1] and this extensive "Bash
Prompt HOWTO" [2] at TLDP. But where would I have to look "on board"
for a documentation of these powerful escape sequences?
By the way, I just noticed that packages.debian.org has the doc-linux
package listed no longer but in oldoldstable.
Ahoi,
Florian
[1]
http://www.askapache.com/linux/bash-power-prompt.html
[2]
http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/