Drop main() prototype. Syncs with NetBSD-8
[minix.git] / external / bsd / tmux / dist / examples / bash_completion_tmux.sh
blob74728b91e3aa7ef49d3c3cb4cb13666d0cf29eae
1 # START tmux completion
2 # This file is in the public domain
3 # See: http://www.debian-administration.org/articles/317 for how to write more.
4 # Usage: Put "source bash_completion_tmux.sh" into your .bashrc
5 _tmux()
7 local cur prev opts
8 COMPREPLY=()
9 cur="${COMP_WORDS[COMP_CWORD]}"
10 prev="${COMP_WORDS[COMP_CWORD-1]}"
12 opts=" \
13 attach-session \
14 bind-key \
15 break-pane \
16 capture-pane \
17 choose-client \
18 choose-session \
19 choose-window \
20 clear-history \
21 clock-mode \
22 command-prompt \
23 confirm-before \
24 copy-buffer \
25 copy-mode \
26 delete-buffer \
27 detach-client \
28 display-message \
29 display-panes \
30 down-pane \
31 find-window \
32 has-session \
33 if-shell \
34 join-pane \
35 kill-pane \
36 kill-server \
37 kill-session \
38 kill-window \
39 last-window \
40 link-window \
41 list-buffers \
42 list-clients \
43 list-commands \
44 list-keys \
45 list-panes \
46 list-sessions \
47 list-windows \
48 load-buffer \
49 lock-client \
50 lock-server \
51 lock-session \
52 move-window \
53 new-session \
54 new-window \
55 next-layout \
56 next-window \
57 paste-buffer \
58 pipe-pane \
59 previous-layout \
60 previous-window \
61 refresh-client \
62 rename-session \
63 rename-window \
64 resize-pane \
65 respawn-window \
66 rotate-window \
67 run-shell \
68 save-buffer \
69 select-layout \
70 select-pane \
71 select-prompt \
72 select-window \
73 send-keys \
74 send-prefix \
75 server-info \
76 set-buffer \
77 set-environment \
78 set-option \
79 set-window-option \
80 show-buffer \
81 show-environment \
82 show-messages \
83 show-options \
84 show-window-options \
85 source-file \
86 split-window \
87 start-server \
88 suspend-client \
89 swap-pane \
90 swap-window \
91 switch-client \
92 unbind-key \
93 unlink-window \
94 up-pane"
96 COMPREPLY=($(compgen -W "${opts}" -- ${cur}))
97 return 0
100 complete -F _tmux tmux
102 # END tmux completion