all repos — archive/dotfiles @ 3f38a0e5aa2dc0f22491cde5f2432275f811ed90

Superseded by nixfiles

zsh/completion/_tmux_pane_words (view raw)

1
2
3
4
5
6
7
8
9
10
local expl
local -a w

if [[ -z "$TMUX_PANE" ]]; then
	_message "not running inside tmux!"
	return 1
fi

w=( ${(u)=$(tmux capture-pane \; show-buffer \; delete-buffer)} )
_wanted values expl 'words from current tmux pane' compadd -a w