[Konsole-devel] [Bug 176866] Be able to change the tab title from dbus
Diederik van der Boor
mail-kdebugs at codingdomain.com
Thu Dec 4 08:00:14 UTC 2008
http://bugs.kde.org/show_bug.cgi?id=176866
--- Comment #1 from Diederik van der Boor <mail-kdebugs codingdomain com> 2008-12-04 09:00:14 ---
FYI, this was the code I used in KDE 3:
if [ -n "$KONSOLE_DCOP_SESSION" ] && dcop >/dev/null 2>&1; then
function dcop_title { dcop $KONSOLE_DCOP_SESSION renameSession "$1";
}
function rename_konsole_tab { dcop_title "$(pwd | sed -re 's/.*(.{30})$/\1/'
)/"; }
function vim { dcop_title "vim $1" && `type -P vim` "$@"; }
function man { dcop_title "man $1" && `type -P man` "$@"; }
function ssh { dcop_title "ssh $1" && `type -P ssh` "$@"; }
function su { dcop_title "su $1 $2" && `type -P su` "$@"; }
function sudo { dcop_title "sudo $1" && `type -P sudo` "$@"; }
PROMPT_COMMAND=rename_konsole_tab
fi
--
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the konsole-devel
mailing list