Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 450896 - app-misc/tmux should install the distributed bash completion file
Summary: app-misc/tmux should install the distributed bash completion file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal enhancement (vote)
Assignee: Alex Alexander (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-01-08 14:48 UTC by Wang Jiajun
Modified: 2013-01-08 15:12 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
new ebuild for tmux (tmux-1.7.ebuild,1.80 KB, text/plain)
2013-01-08 14:50 UTC, Wang Jiajun
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wang Jiajun 2013-01-08 14:48:48 UTC
There is a bash completion file in the tmux tarball. But currently the ebuild doesn't deal with the file.

Reproducible: Always

Steps to Reproduce:
1.run: # emerge tmux
2.check the installed files: $ equery files tmux
3.there is no such bash completion file in /usr/share/bash-completion/


Expected Results:  
There should be a file named "tmux" under /usr/share/bash-completion/
Comment 1 Wang Jiajun 2013-01-08 14:50:35 UTC
Created attachment 334806 [details]
new ebuild for tmux

I have add some code to install the bash completion file.

(just for tmux-1.7.ebuild, but the same lines should also be added to other tmux ebuilds)
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2013-01-08 14:59:35 UTC
Comment on attachment 334806 [details]
new ebuild for tmux

--- tmux-1.7.ebuild     2012-12-28 18:58:30.000000000 +0100
+++ -   2013-01-08 15:59:27.910600502 +0100
@@ -4,6 +4,8 @@
 
 EAPI=4
 
+inherit bash-completion-r1
+
 DESCRIPTION="Terminal multiplexer"
 HOMEPAGE="http://tmux.sourceforge.net"
 SRC_URI="mirror://sourceforge/tmux/${P}.tar.gz"
@@ -49,6 +51,8 @@
 src_install() {
        default
 
+       newbashcomp examples/bash_completion_tmux.sh ${PN}
+
        docinto examples
        dodoc examples/*.conf
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2013-01-08 15:12:20 UTC
+*tmux-1.7-r1 (08 Jan 2013)
+
+  08 Jan 2013; Justin Lecher <jlec@gentoo.org> tmux-1.6.ebuild,
+  tmux-1.7.ebuild, +tmux-1.7-r1.ebuild, tmux-9999.ebuild, metadata.xml:
+  Install bashcompletion file, #450896
+