From 81c8016d1e296ed91af69f2d5bf435d7d657af04 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 12 Apr 2014 13:15:53 +0100 Subject: Restructure everything to use rcm https://github.com/thoughtbot/rcm --- tag-zsh/config/zsh/completion/_tmux_pane_words | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tag-zsh/config/zsh/completion/_tmux_pane_words (limited to 'tag-zsh/config/zsh/completion') diff --git a/tag-zsh/config/zsh/completion/_tmux_pane_words b/tag-zsh/config/zsh/completion/_tmux_pane_words new file mode 100644 index 00000000..6ff9ce18 --- /dev/null +++ b/tag-zsh/config/zsh/completion/_tmux_pane_words @@ -0,0 +1,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 -- cgit 1.4.1