Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 757711

Summary: app-shells/bash: update /etc/bash/bashrc to support tmux
Product: Gentoo Linux Reporter: redneb <redneb>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal Keywords: PullRequest
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/18453
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch to update the bashrc that ships with app-shells/bash

Description redneb 2020-11-30 05:11:18 UTC
Created attachment 675805 [details, diff]
patch to update the bashrc that ships with app-shells/bash

The support for setting TERM=tmux (or tmux-256color) has been increasing in recent years. For example, recent versions of ncurses support those two values. I have also been seeing online an increasing number of people using that value for tmux (instead of the default which is 'screen', for compatibility reasons). So I think it would be a good idea to update gentoo's /etc/bash/bashrc to include support for setting the (xterm) title under tmux. The attached trivial patch seems to be working just fine in my system.
Comment 1 Larry the Git Cow gentoo-dev 2020-12-01 13:16:01 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca824f512dac614cc67d618e726582e8a4ff0f7b

commit ca824f512dac614cc67d618e726582e8a4ff0f7b
Author:     Marios Titas <redneb@gmx.com>
AuthorDate: 2020-11-30 05:39:16 +0000
Commit:     Lars Wendler <polynomial-c@gentoo.org>
CommitDate: 2020-12-01 13:15:57 +0000

    app-shells/bash: add support for TERM=tmux in bashrc
    
    Closes: https://bugs.gentoo.org/757711
    Signed-off-by: Marios Titas <redneb@gmx.com>
    Closes: https://github.com/gentoo/gentoo/pull/18453
    Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>

 app-shells/bash/files/bashrc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)