Activity log for bug #1437089

Date Who What changed Old value New value Message
2015-03-27 00:22:39 Djax bug added bug
2015-03-27 00:22:59 Djax branch linked lp:~parnold-x/+junk/bash-titles
2015-03-27 22:57:50 Djax branch linked lp:~parnold-x/elementaryos/fix-1437089
2015-03-27 22:57:56 Djax branch unlinked lp:~parnold-x/+junk/bash-titles
2015-03-27 22:58:40 Djax 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. The scripts must be source at the end of the bashrc: if [ -f ~/.bash_preexec ]; then # preexec and precmd hook functions for Bash # If you have anything that's using the Debug Trap, change it to use # preexec. See also https://github.com/rcaloras/bash-preexec . ~/.bash_preexec # set bash titles for elementary OS . ~/.bash_titles fi this must be comment out in the now shipped bashrc in order to get the bash_titles to work: # keep commented out when using .bash_titles # If this is an xterm set the title to user@host:dir #case "$TERM" in #xterm*|rxvt*) # PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1" # ;; #*) # ;; #esac 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.
2015-03-29 19:50:02 Danielle Foré elementaryos: milestone freya-rc1
2015-03-29 19:50:05 Danielle Foré elementaryos: importance Undecided Wishlist
2015-03-29 19:50:08 Danielle Foré elementaryos: status New In Progress
2015-04-02 01:46:34 Cody Garver elementaryos: assignee Djax (parnold-x)
2015-04-02 01:46:41 Cody Garver branch linked lp:~elementary-os/elementaryos/os-patch-bash-trusty
2015-04-02 17:37:16 Cody Garver elementaryos: status In Progress Fix Committed
2015-04-30 19:51:00 Danielle Foré elementaryos: status Fix Committed Fix Released