Provide a bashrc that enables "intelligent" tab titles

Bug #1437089 reported by Djax
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
elementary OS
Fix Released
Wishlist
Djax

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:
https://github.com/rcaloras/bash-preexec
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)
description: updated
Changed in elementaryos:
milestone: none → freya-rc1
importance: Undecided → Wishlist
status: New → In Progress
Cody Garver (codygarver)
Changed in elementaryos:
assignee: nobody → Djax (parnold-x)
Cody Garver (codygarver)
Changed in elementaryos:
status: In Progress → Fix Committed
Changed in elementaryos:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.