Provide a bashrc that enables "intelligent" tab titles

Bug #1437089 reported by Djax on 2015-03-27
This bug affects 3 people
Affects Status Importance Assigned to Milestone
elementary OS
Fix Released

Bug Description

Till now the tab titles in terminal are just a repetition of the prompt.
The aim of this bug is to provide tab titles in the form "(last segment of the path): (last executed cmd)"
While executing a process like e.g. top the cmd name is printed in the form "cmd" in the title.

To achive this afaik the only way for bash is to do it with a trap DEBUG.
To not hijack the debug trap from the user the linked branch uses this script:
It adds preexec and precmd to bash just like in Zsh. So the user can hook as much own function as he wants.
It doesn't override already set PROMPT_COMMAND so the actual notification hook still persists.

Djax (parnold-x) on 2015-03-27
description: updated
Daniel Fore (danrabbit) on 2015-03-29
Changed in elementaryos:
milestone: none → freya-rc1
importance: Undecided → Wishlist
status: New → In Progress
Cody Garver (codygarver) on 2015-04-02
Changed in elementaryos:
assignee: nobody → Djax (parnold-x)
Cody Garver (codygarver) on 2015-04-02
Changed in elementaryos:
status: In Progress → Fix Committed
Daniel Fore (danrabbit) on 2015-04-30
Changed in elementaryos:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers