public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Michael Mauch <michael.mauch@gmx.de>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Re: OT: auto rename konsole session tabs?
Date: Thu, 5 Oct 2006 00:55:27 +0200	[thread overview]
Message-ID: <20061004225527.GC18905@elmicha> (raw)
In-Reply-To: <loom.20061003T200139-495@post.gmane.org>

james wrote:

> Well when I ssh into a remote system, bash detects this (hostname)
> and displays the hostname in the prompt(command line) 
> automatically. So it is possible, another way to pose the question
> is how to transfer this information 'automatically' from bash
> to the kde-session-tab-name?

You can set the tab title of konsole with something like

setkonsoletabtitle () {
        echo -en "\e]30;$*\a"
}

For ssh I have another shell function:

ssh () {
        setkonsoletabtitle "$1"
        command ssh "$@"
        cd .
	# that sets the tab title back to the normal "local look" here
}

Of course this only works nicely if you use "ssh host" or "ssh
user@host" and not "ssh -l user host".

Regards...
		Michael
-- 
gentoo-user@gentoo.org mailing list



  parent reply	other threads:[~2006-10-04 23:01 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-03 17:04 [gentoo-user] OT: auto rename konsole session tabs? James
2006-10-03 17:45 ` [gentoo-user] " Harm Geerts
2006-10-04  1:57   ` james
2006-10-04 20:52     ` Etaoin Shrdlu
     [not found]       ` <200610041551.25081.bss03@volumehost.net>
2006-10-04 22:01         ` Bo Ørsted Andresen
2006-10-04 22:37           ` Neil Bothwick
     [not found]           ` <200610050015.15186.bo.andresen@zlin.dk>
2006-10-05  2:30             ` Boyd Stephen Smith Jr.
2006-10-06  0:41             ` James
2006-10-06  2:09               ` Bo Ørsted Andresen
2006-10-06 11:18                 ` James
2006-10-06 12:04                   ` Bo Ørsted Andresen
2006-10-06 18:12                     ` James
2006-10-04 22:55     ` Michael Mauch [this message]
2006-10-03 19:12 ` [gentoo-user] " Mike Williams
2006-10-04  4:59   ` Martins Steinbergs
2006-10-06  1:20     ` [gentoo-user] " James
2006-10-06  1:15       ` James
2006-10-07 18:13       ` Martins Steinbergs

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20061004225527.GC18905@elmicha \
    --to=michael.mauch@gmx.de \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox