Hello community,

here is the log from the commit of package tmux for openSUSE:Factory checked in 
at 2018-05-16 11:42:59
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/tmux (Old)
 and      /work/SRC/openSUSE:Factory/.tmux.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "tmux"

Wed May 16 11:42:59 2018 rev:39 rq:607707 version:2.7

Changes:
--------
--- /work/SRC/openSUSE:Factory/tmux/tmux.changes        2018-04-20 
17:28:51.979852576 +0200
+++ /work/SRC/openSUSE:Factory/.tmux.new/tmux.changes   2018-05-16 
11:44:11.690618177 +0200
@@ -1,0 +2,5 @@
+Tue May 15 18:39:52 UTC 2018 - a...@cryptomilk.org
+
+- Add bash completion for tmux
+
+-------------------------------------------------------------------

New:
----
  bash_completion_tmux.sh

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ tmux.spec ++++++
--- /var/tmp/diff_new_pack.NzKidO/_old  2018-05-16 11:44:12.274596919 +0200
+++ /var/tmp/diff_new_pack.NzKidO/_new  2018-05-16 11:44:12.274596919 +0200
@@ -24,6 +24,7 @@
 Group:          System/Console
 URL:            https://tmux.github.io/
 Source0:        
https://github.com/tmux/tmux/releases/download/%{version}/%{name}-%{version}.tar.gz
+Source1:        bash_completion_tmux.sh
 # PATCH-FIX-OPENSUSE crrodrig...@opensuse.org -- Use /run/tmux instead of /tmp 
as the default socket path, this add some robustness against accidental 
deletion via systemd-tmpfiles-clean, tmpwatch, or similar
 Patch0:         tmux-socket-path.patch
 BuildRequires:  pkgconfig
@@ -61,6 +62,10 @@
 %install
 %make_install
 
+# bash completion
+install -d -m 0755 %{buildroot}%{_sysconfdir}/bash_completion.d/
+install -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/bash_completion.d/tmux.sh
+
 install -d -m 0755 %{buildroot}%{_tmpfilesdir}
 printf 'd /run/tmux 1777 root root -' > %{buildroot}%{_tmpfilesdir}/tmux.conf
 
@@ -70,6 +75,7 @@
 %files
 %license COPYING
 %doc CHANGES TODO
+%{_sysconfdir}/bash_completion.d/tmux.sh
 %{_bindir}/%{name}
 %{_mandir}/man1/%{name}.1%{?ext_man}
 %{_tmpfilesdir}/%{name}.conf

++++++ bash_completion_tmux.sh ++++++
# START tmux completion
# This file is in the public domain
# See: http://www.debian-administration.org/articles/317 for how to write more.
# Usage: Put "source bash_completion_tmux.sh" into your .bashrc
_tmux()
{
    local cur prev opts
    COMPREPLY=()
    cur="${COMP_WORDS[COMP_CWORD]}"
    prev="${COMP_WORDS[COMP_CWORD-1]}"

    opts=" \
    attach-session \
    bind-key \
    break-pane \
    capture-pane \
    choose-client \
    choose-session \
    choose-window \
    clear-history \
    clock-mode \
    command-prompt \
    confirm-before \
    copy-buffer \
    copy-mode \
    delete-buffer \
    detach-client \
    display-message \
    display-panes \
    down-pane \
    find-window \
    has-session \
    if-shell \
    join-pane \
    kill-pane \
    kill-server \
    kill-session \
    kill-window \
    last-window \
    link-window \
    list-buffers \
    list-clients \
    list-commands \
    list-keys \
    list-panes \
    list-sessions \
    list-windows \
    load-buffer \
    lock-client \
    lock-server \
    lock-session \
    move-window \
    new-session \
    new-window \
    next-layout \
    next-window \
    paste-buffer \
    pipe-pane \
    previous-layout \
    previous-window \
    refresh-client \
    rename-session \
    rename-window \
    resize-pane \
    respawn-window \
    rotate-window \
    run-shell \
    save-buffer \
    select-layout \
    select-pane \
    select-prompt \
    select-window \
    send-keys \
    send-prefix \
    server-info \
    set-buffer \
    set-environment \
    set-option \
    set-window-option \
    show-buffer \
    show-environment \
    show-messages \
    show-options \
    show-window-options \
    source-file \
    split-window \
    start-server \
    suspend-client \
    swap-pane \
    swap-window \
    switch-client \
    unbind-key \
    unlink-window \
    up-pane"

    COMPREPLY=($(compgen -W "${opts}" -- ${cur}))
    return 0

}
complete -F _tmux tmux

# END tmux completion

Reply via email to