Session recording

John Abreau jabr at blu.org
Tue Apr 1 12:18:09 EDT 2008


On Mon, March 31, 2008 9:34 pm, Kenny Lussier said:

>
> It also has me thinking about different ways of manipulating the
> command prompt to add unique identifiers. I might cobble all f this
> together and make something useful after all! :-)
>

Here's how I've been setting mine:

    PS1='\033]0;\h:\w\007\r\u@\h:\w\n\t \d \$ '

This sets the xterm title to host:cwd, and the prompt to
user at host:cwd (newline) time weekday month day (uid==0?'#':'$')
The CWD often gets fairly long, so I spilled the date and time
onto a second line.

I typically have dozens of xterms open, many running screen
sessions with multiple screens, and some of them can sit idle
for months at a time. With this prompt, I can always tell
at a glance all the context I need about a particular session.




-- 
John Abreau / Executive Director, Boston Linux & Unix
IM: jabr at jabber.blu.org / abreauj at AIM / abreauj at Yahoo / zusa_it_mgr at Skype
Email jabr at blu.org / WWW http://www.abreau.net / PGP-Key-ID 0xD5C7B5D9
PGP-Key-Fingerprint 72 FB 39 4F 3C 3B D6 5B E0 C8 5A 6E F1 2C BE 99


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the gnhlug-discuss mailing list