Date: Sun, 07 Feb 2010 17:04:44 -0800 From: Doug Barton <dougb@FreeBSD.org> To: "Sean C. Farley" <scf@FreeBSD.org> Cc: ports@FreeBSD.org, Peter Jeremy <peterjeremy@acm.org> Subject: Re: FreeBSD Port: portmaster-2.17 (on console) Message-ID: <4B6F632C.9060306@FreeBSD.org> In-Reply-To: <alpine.BSF.2.00.1001271640250.24776@thor.farley.org> References: <4B5DDE95.4030606@gmail.com> <4B5DE8ED.8030507@FreeBSD.org> <20100127051140.GC9620@rwpc12.mby.riverwillow.net.au> <20100127070459.GB1889@server.vk2pj.dyndns.org> <alpine.BSF.2.00.1001271640250.24776@thor.farley.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 01/27/10 14:51, Sean C. Farley wrote: > With zsh, I use a precmd() function that updates the title every time > the prompt is about to appear, e.g., portmaster exits: > > precmd() > { > case ${TERM} in > xterm*) > print -Pn "\e]0;%n@%m\a" > ;; > esac > } > > It comes in useful when using ssh to connect to different accounts. When > I exit one account which had reset the title, the title changes back to > the previous account. > > bash users may find something equivalent. All you have to do in bash is set PS1. http://dougbarton.us/Bash/Bash-prompts.html FYI, I just checked some code into the svn version of portmaster to handle the problem of not printing the terminal escapes on cons25, and a new --no-term-title option. I'm working on some other bug fixes as well, and with any kind of luck they should all be in the ports version later tonight. Doug -- ... and that's just a little bit of history repeating. -- Propellerheads Improve the effectiveness of your Internet presence with a domain name makeover! http://SupersetSolutions.com/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B6F632C.9060306>