Blame bash_completion_tmux.sh

Sven Lankes a35005
# START tmux completion
Sven Lankes a35005
# This file is in the public domain
Sven Lankes a35005
# See: http://www.debian-administration.org/articles/317 for how to write more.
Sven Lankes a35005
# Usage: Put "source bash_completion_tmux.sh" into your .bashrc
Sven Lankes a35005
_tmux() 
Sven Lankes a35005
{
Sven Lankes a35005
    local cur prev opts
Sven Lankes a35005
    COMPREPLY=()
Sven Lankes a35005
    cur="${COMP_WORDS[COMP_CWORD]}"
Sven Lankes a35005
    prev="${COMP_WORDS[COMP_CWORD-1]}"
Sven Lankes a35005
    
Sven Lankes a35005
    opts=" \
Sven Lankes a35005
    attach-session \
Sven Lankes a35005
    bind-key \
Sven Lankes a35005
    break-pane \
Sven Lankes a35005
    capture-pane \
Sven Lankes a35005
    choose-client \
Sven Lankes a35005
    choose-session \
Sven Lankes a35005
    choose-window \
Sven Lankes a35005
    clear-history \
Sven Lankes a35005
    clock-mode \
Sven Lankes a35005
    command-prompt \
Sven Lankes a35005
    confirm-before \
Sven Lankes a35005
    copy-buffer \
Sven Lankes a35005
    copy-mode \
Sven Lankes a35005
    delete-buffer \
Sven Lankes a35005
    detach-client \
Sven Lankes a35005
    display-message \
Sven Lankes a35005
    display-panes \
Sven Lankes a35005
    down-pane \
Sven Lankes a35005
    find-window \
Sven Lankes a35005
    has-session \
Sven Lankes a35005
    if-shell \
Sven Lankes a35005
    join-pane \
Sven Lankes a35005
    kill-pane \
Sven Lankes a35005
    kill-server \
Sven Lankes a35005
    kill-session \
Sven Lankes a35005
    kill-window \
Sven Lankes a35005
    last-window \
Sven Lankes a35005
    link-window \
Sven Lankes a35005
    list-buffers \
Sven Lankes a35005
    list-clients \
Sven Lankes a35005
    list-commands \
Sven Lankes a35005
    list-keys \
Sven Lankes a35005
    list-panes \
Sven Lankes a35005
    list-sessions \
Sven Lankes a35005
    list-windows \
Sven Lankes a35005
    load-buffer \
Sven Lankes a35005
    lock-client \
Sven Lankes a35005
    lock-server \
Sven Lankes a35005
    lock-session \
Sven Lankes a35005
    move-window \
Sven Lankes a35005
    new-session \
Sven Lankes a35005
    new-window \
Sven Lankes a35005
    next-layout \
Sven Lankes a35005
    next-window \
Sven Lankes a35005
    paste-buffer \
Sven Lankes a35005
    pipe-pane \
Sven Lankes a35005
    previous-layout \
Sven Lankes a35005
    previous-window \
Sven Lankes a35005
    refresh-client \
Sven Lankes a35005
    rename-session \
Sven Lankes a35005
    rename-window \
Sven Lankes a35005
    resize-pane \
Sven Lankes a35005
    respawn-window \
Sven Lankes a35005
    rotate-window \
Sven Lankes a35005
    run-shell \
Sven Lankes a35005
    save-buffer \
Sven Lankes a35005
    select-layout \
Sven Lankes a35005
    select-pane \
Sven Lankes a35005
    select-prompt \
Sven Lankes a35005
    select-window \
Sven Lankes a35005
    send-keys \
Sven Lankes a35005
    send-prefix \
Sven Lankes a35005
    server-info \
Sven Lankes a35005
    set-buffer \
Sven Lankes a35005
    set-environment \
Sven Lankes a35005
    set-option \
Sven Lankes a35005
    set-window-option \
Sven Lankes a35005
    show-buffer \
Sven Lankes a35005
    show-environment \
Sven Lankes a35005
    show-messages \
Sven Lankes a35005
    show-options \
Sven Lankes a35005
    show-window-options \
Sven Lankes a35005
    source-file \
Sven Lankes a35005
    split-window \
Sven Lankes a35005
    start-server \
Sven Lankes a35005
    suspend-client \
Sven Lankes a35005
    swap-pane \
Sven Lankes a35005
    swap-window \
Sven Lankes a35005
    switch-client \
Sven Lankes a35005
    unbind-key \
Sven Lankes a35005
    unlink-window \
Sven Lankes a35005
    up-pane"
Sven Lankes a35005
Sven Lankes a35005
    COMPREPLY=($(compgen -W "${opts}" -- ${cur}))  
Sven Lankes a35005
    return 0
Sven Lankes a35005
Sven Lankes a35005
}
Sven Lankes a35005
complete -F _tmux tmux
Sven Lankes a35005
Sven Lankes a35005
# END tmux completion
Sven Lankes a35005
Sven Lankes a35005
Sven Lankes a35005